Skip to content

[BUG]  #75

@evertonvps

Description

@evertonvps

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions