Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] #75

Open
evertonvps opened this issue Sep 25, 2021 · 0 comments
Open

[BUG] #75

evertonvps opened this issue Sep 25, 2021 · 0 comments
Labels

Comments

@evertonvps
Copy link

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 evertonvps added the bug label Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant