react-google-maps
react-google-maps copied to clipboard
[Bug] Advanced Markers not registering onClick Event when the Map is rendered inside a Modal which uses a Protal
Description
In Our App we show the map inside a Radix Modal, recently we switched from Markers to AdvancedMarkers this had lead to the Problem that the onClick Event is not Registered anymore.
Steps to Reproduce
Rendering Map with Advanced Markers inside a Modal that uses a Portal e.g Radix Modal
Environment
- Library version: 1.5.1
- Google maps version: weekly
- Browser and Version: Tested on Chrome and Firefox
- OS: MacOs
Logs
Can you provide an example of this in action somewhere (codesandbox or similar)? I would like to have a look at what is happening there. I can only assume that the issue has something to do with nested portals (the AdvancedMarker component uses them as well to get dom-nodes into the marker content).