onclick function in ui.frontend
Hi everyone
I’ve created a custom component button search

Here’s the HTML of the button (buttonsearch.html)

On the ui.frontend > src > main > webpack > components ( there’s scss and js files) I’ve created a js file ( _buttonsearch.js), where my function “displayModal” is defined

But when i click the button I get an error “Uncaught ReferenceError: displayModal is not defined” anyone knows hpw could I make it work ?
Thanks in advance.