Skip to content

Fix(popup): condition check for popup display#78

Merged
arnaudfnr merged 2 commits into
mainfrom
arnaudfnr/fix-bug-popup
Apr 19, 2026
Merged

Fix(popup): condition check for popup display#78
arnaudfnr merged 2 commits into
mainfrom
arnaudfnr/fix-bug-popup

Conversation

@arnaudfnr
Copy link
Copy Markdown
Collaborator

@arnaudfnr arnaudfnr commented Apr 19, 2026

Context

We had a condition like this :

if (geometry && id && eventProps)

However id wat typed as string or number and the check was failing when id was equal to 0.

Moreover, geometry was checked but never accessed, because ev.lngLat was effectively used to set Popup position on the map. This has been fixed too.

I added some console warn in case the check was failing.

@arnaudfnr arnaudfnr merged commit b2de84b into main Apr 19, 2026
3 checks passed
@arnaudfnr arnaudfnr deleted the arnaudfnr/fix-bug-popup branch April 19, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants