What happened?
Tapping/clicking a marker opens its popup, but the popup closes again right
away, before it can be read.
Root cause: in src/components/map/map-view.tsx, the <Popup> rendered per
marker doesn't override Leaflet's defaults (closeOnClick: true,
autoClose: true), and the marker's click handler calls map.flyTo(...)
without stopPropagation(). The click-to-flyTo sequence can re-trigger
Leaflet's own close-on-click behaviour, closing the popup it just opened —
worse on touch devices due to click/touch event timing.
What did you expect to happen?
The popup should stay open until the user dismisses it or selects another
place.
Steps to reproduce
- Open the map page.
- Tap any marker pin.
- Popup flashes open then closes immediately, especially on mobile.
Browser and OS
Reproduces on mobile touch devices most consistently; can also happen on
desktop depending on click/flyTo timing.
Checklist
What happened?
Tapping/clicking a marker opens its popup, but the popup closes again right
away, before it can be read.
Root cause: in
src/components/map/map-view.tsx, the<Popup>rendered permarker doesn't override Leaflet's defaults (
closeOnClick: true,autoClose: true), and the marker'sclickhandler callsmap.flyTo(...)without
stopPropagation(). The click-to-flyTo sequence can re-triggerLeaflet's own close-on-click behaviour, closing the popup it just opened —
worse on touch devices due to click/touch event timing.
What did you expect to happen?
The popup should stay open until the user dismisses it or selects another
place.
Steps to reproduce
Browser and OS
Reproduces on mobile touch devices most consistently; can also happen on
desktop depending on click/flyTo timing.
Checklist