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)
}
- [Vuejs]-Pass emit click to parent in slot element to run function in parent vue 3 slot option api
- [Vuejs]-Vue.js element reference on attribute
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()
.
Source:stackexchange.com