[ENTERPRISE] Leaflet - Marker on_click events don't fire
π
I've been evaluating the reflex-enterprise package, especially the Leaflet.js integration. However I'm struggling to get events working on anything but the map itself: Markers, Popup or Tooltip don't fire events which makes it less useful to display interactive maps with user interaction with the Markers.
I'm looking at displaying a text specific to a marker whenever its clicked on the map.
...
Expected behavior
When attaching an on_click event to a Marker, it should fire. Same for the Popup or Tooltip objects. Only the map object itself seems to fire the on_click event properly.
The event should contain the Marker id to be able to identify which Marker was clicked.
...
Steps to reproduce (if applicable)
- Use this code snippet from the documentation: https://reflex.dev/docs/enterprise/map/#dynamic-markers
- Add a state, and a
@rx.eventhandler that simply print whatever it receives. - Observe that nothing gets emitted. Attach the same handler to the
on_clickevent to the map, it works.
It looks like the on_popupopen, on_popupclose, on_tooltipopen, on_tooltipclose also don't fire.
Environment
- Reflex Version: 0.8.9
- Python Version: 3.13
- OS: OSX
- Browser: Firefox, Safari
By the way, thank you for Reflex, it's really awesome :) The Enterprise package looks super promising too!
yea i am having the same issue too!