Popup: closeOnClick causes subsequent popups not to open #1757
-
Working with markers and popups, I am having issues with only the first popup being opened. The markers onClick event console.logs fine on every click.
I tried setting closeOnClick={false} on the Popup, after which everything appears to work properly. Not sure if this is a bug, or me who is doing something wrong? I am working with Next.js and managed to replicate the issue with the below code, based on the official Markers & Popup example:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I believe this is a bug in mapbox-gl: mapbox/mapbox-gl-js#11535 |
Beta Was this translation helpful? Give feedback.
I believe this is a bug in mapbox-gl: mapbox/mapbox-gl-js#11535