BrazilCustomerAttributes
BrazilCustomerAttributes copied to clipboard
[BUG]
Preconditions (*)
- BrazilCustomerAttributes (1.1.2)
- Magento (2.4.2)
Steps to reproduce (*)
- Digitar CEP
Expected result (*)
-
O metodo, deveria validar o que foi digitado e exibindo o botao. `onUpdate: function () { this.bubble('update', this.hasChanged()); var validate = this.validate();
if(validate.valid == true && this.value() && this.value().length == 9){ jquery('body').loader('show'); var element = this; var value = this.value(); value = value.replace('-', ''); var ajaxurl = url.build('/rest/V1/magedev-brazil-zipcode/search/' + value);`
Actual result (*)
- O var validate, e' undefined , causando erro, e oculta o botao e nao executa o ajax. Paliativamente adicionei uma checagem para funcionar: