-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Important bugfix: prevent events from bubbling up to leaflet
There are interaction issues around combining React and "native" javascript components. We want to prevent events (eg double-click) on the sidebar from interacting with the underlying leaflet map. However, we can't just add onDoubleClick to our react markup, because React synthesises events by installing a single global event handler at the document, by which time they have already been caught by leaflet. So, we need to attach native javascript handlers for everything we want to stop bubbling up.
- Loading branch information
1 parent
9089979
commit a9156e8
Showing
1 changed file
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters