BrazilCustomerAttributes icon indicating copy to clipboard operation
BrazilCustomerAttributes copied to clipboard

[BUG]

Open evertonvps opened this issue 4 years ago • 0 comments

Preconditions (*)

  1. BrazilCustomerAttributes (1.1.2)
  2. Magento (2.4.2)

Steps to reproduce (*)

  1. Digitar CEP

Expected result (*)

  1. 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 (*)

  1. O var validate, e' undefined , causando erro, e oculta o botao e nao executa o ajax. Paliativamente adicionei uma checagem para funcionar: image

evertonvps avatar Sep 25 '21 02:09 evertonvps