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
The "X" mark is a link, when click will redirect app to diffrent url (like this) https://leafletjs.com/#close
The button is rendered as <a class="leaflet-popup-close-button" role="button" aria-label="Close popup" href="#close"><span aria-hidden="true">×</span></a>
Expected behavior
Leaflet close popup button should not mess with routing inside application and create links pointing to sections.
Current behavior
In case of leaflet with frameworks like react and react-router this feature is breaking routing, enforcing to trigger hooks watching url changes and forcing to re-render whole map and page.
this example does not rely on any third party code
The text was updated successfully, but these errors were encountered:
hadson172
changed the title
"X" mark in popup is breaking application by pointing to "#close"
"X" mark in popup is breaking applications by pointing to "#close"
May 11, 2022
Steps to reproduce
Steps to reproduce the behavior:
The "X" mark is a link, when click will redirect app to diffrent url (like this)
https://leafletjs.com/#close
The button is rendered as
<a class="leaflet-popup-close-button" role="button" aria-label="Close popup" href="#close"><span aria-hidden="true">×</span></a>
Expected behavior
Leaflet close popup button should not mess with routing inside application and create links pointing to sections.
Current behavior
In case of leaflet with frameworks like react and react-router this feature is breaking routing, enforcing to trigger hooks watching url changes and forcing to re-render whole map and page.
Environment
Additional context
Minimal example reproducing the issue
https://leafletjs.com/
The text was updated successfully, but these errors were encountered: