I've encountered a challenge trying to add an event listener to the Mapbox GL Geocoder search input within a Vue application. It appears to be a straightforward task, but I'm facing difficulties.
My objective is to implement a functionality similar to this:
buttonElement.addEventListener('click', function (event) {
alert('clicked!');
});