Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geocoder result event firing twice after searching for a second address #59

Closed
jh-code opened this issue Sep 10, 2018 · 1 comment
Closed

Comments

@jh-code
Copy link

jh-code commented Sep 10, 2018

I have a geocoder on my map that is used to place markers on a map. If I search for an address, select the right one, it adds a marker to the map at that location. If I delete the text in the search input and search for another address, then select it, I get an event for the previous address and the new one. It works as expected if I manually click the x to clear the search input, but not if I highlight/erase the text in the input.

Is this expected behavior? If so, how can I clear the search input programmatically?

@Wykks
Copy link
Owner

Wykks commented Oct 17, 2018

That's a know bug : mapbox/mapbox-gl-geocoder#99
I'll add a workaround inside ngx-mapbox-gl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants