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

Item click inside the InfoWindow #517

Open
jasbirsmindfiresolutions opened this issue Jul 13, 2021 · 4 comments
Open

Item click inside the InfoWindow #517

jasbirsmindfiresolutions opened this issue Jul 13, 2021 · 4 comments

Comments

@jasbirsmindfiresolutions

Hi,

I have added a button in the info window, but i cant perform any action on click of that button.

@amandarose42
Copy link

I am having this same issue!

My workaround for now is using onOpen to do any button commands when using InfoWindow.

(but would like to insert button and trigger from there in the future!)

@josepBasetis
Copy link

i'm having this same issue. any solution ?

@itsmejasbirsingh
Copy link

No, even font family gets changed when try to open the info window.

you may look out to an another library, but i did'nt tried it.

https://www.npmjs.com/package/react-google-maps

@RajThapa7
Copy link

RajThapa7 commented Sep 18, 2024

We can work around this by calling a function on the onOpen event on the InfoWindow component; inside that function, we can render the components where we want the click events.
Here is a source to the code sandbox:
https://codesandbox.io/p/sandbox/k0xrxok983

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

No branches or pull requests

5 participants