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

Gmap component doesn't remove listeners when removing markers. #4873

Closed
jbahamon opened this issue Jan 18, 2018 · 0 comments
Closed

Gmap component doesn't remove listeners when removing markers. #4873

jbahamon opened this issue Jan 18, 2018 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@jbahamon
Copy link

I'm submitting a bug report for the gmap component.

Listeners aren't unbound from markers when they are removed from the map. Therefore if, for example, you re-add an element after removing it, all events will be triggered twice, because the component will have called bindOverlayEvents twice in total. A workaround is removing these listeners manually, but then you will have to re-add your custom listeners (those not managed through onOverlayClick, etc).

@cagataycivici cagataycivici self-assigned this Mar 26, 2018
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Mar 26, 2018
@cagataycivici cagataycivici added this to the 5.2.4 milestone Mar 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants