We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
mapbox-gl-js version: 2.7.0
browser: any
closeOnClick: true
close
https://codepen.io/Pessimistress/pen/qBPmbrV
The close callback should be called once for each popup
All close callbacks ever registered continue to be called when the map is clicked.
I believe this was introduced by 9c1e1a0, as a preclick listener is added to the map:
preclick
mapbox-gl-js/src/ui/popup.js
Line 143 in 6828333
But on popup.remove it attempts to remove a click listener:
popup.remove
click
Line 219 in 6828333
This bug cannot be reproduced on versions <2.5.0, when this commit was included.
The text was updated successfully, but these errors were encountered:
Thanks for the report @Pessimistress I submitted #11540 to fix this
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
mapbox-gl-js version: 2.7.0
browser: any
Steps to Trigger Behavior
closeOnClick: true
close
eventclose
event continue to fire upon any click on the mapLink to Demonstration
https://codepen.io/Pessimistress/pen/qBPmbrV
Expected Behavior
The
close
callback should be called once for each popupActual Behavior
All
close
callbacks ever registered continue to be called when the map is clicked.I believe this was introduced by 9c1e1a0, as a
preclick
listener is added to the map:mapbox-gl-js/src/ui/popup.js
Line 143 in 6828333
But on
popup.remove
it attempts to remove aclick
listener:mapbox-gl-js/src/ui/popup.js
Line 219 in 6828333
This bug cannot be reproduced on versions <2.5.0, when this commit was included.
The text was updated successfully, but these errors were encountered: