[Vuejs]-Vue2 : v-show and changind data dynamically

0👍

you are calling this.hideBtn() which is not a function

    applySearch(search, loading) {
      if (search.length > 0 && search.length < 3) {
        this.hideBtn(); // <-- you are calling this.hideBtn() which isn't a function. just remove this and try
        return;
      }  
      this.showBtn();   
      this.retrieveEntities(search, loading)
    }

0👍

This code should work properly, maybe you have somewhere else in code something that is trying to execute this.hideButton() while your method’s name is this.hideBtn().

Leave a comment