You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Close button should work even after adding popup again.
Actual Behavior
Close button does not work in 5.2.0, but did work in 5.1.1.
Comment
If popup is already open and addTo(map) is not used then it is possible to close popup.
Probably it is good idea to check if popup is already open but it was not necessary in previous release.
The text was updated successfully, but these errors were encountered:
Thanks for taking the time to open this PR!
I believe this is related to a recent change to prevent a memory leak. @kamil-sienkiewicz-asi can you take a look at this issue?
😖 fixing a bug caused another one to pop up? :D
I wonder what's the point of calling .addToMap() again when it's already on map. I think that it would be a huge breaking change for everyone, but shouldn't addToMap() just return early when popup is already constructed?
maplibre-gl-js version: 5.2.0
browser: Edge 133
Steps to Trigger Behavior
Link to Demonstration
https://jsbin.com/gorenunoga/edit?html,js,output
Expected Behavior
Close button should work even after adding popup again.
Actual Behavior
Close button does not work in 5.2.0, but did work in 5.1.1.
Comment
If popup is already open and addTo(map) is not used then it is possible to close popup.
Probably it is good idea to check if popup is already open but it was not necessary in previous release.
The text was updated successfully, but these errors were encountered: