Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Advanced Markers not registering onClick Event when the Map is rendered inside a Modal which uses a Protal #684

Open
Momo-tech opened this issue Feb 7, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@Momo-tech
Copy link

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


@Momo-tech Momo-tech added the bug Something isn't working label Feb 7, 2025
@usefulthink
Copy link
Collaborator

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants