Gmap component doesn't remove listeners when removing markers. #4873
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
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).
The text was updated successfully, but these errors were encountered: