Skip to content

Item click inside the InfoWindow #517

Open
@jasbirsmindfiresolutions

Description

Hi,

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

Activity

amandarose42

amandarose42 commented on Oct 7, 2021

@amandarose42

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

josepBasetis commented on May 5, 2022

@josepBasetis

i'm having this same issue. any solution ?

itsmejasbirsingh

itsmejasbirsingh commented on May 5, 2022

@itsmejasbirsingh

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

RajThapa7 commented on Sep 18, 2024

@RajThapa7

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @itsmejasbirsingh@amandarose42@jasbirsmindfiresolutions@RajThapa7@josepBasetis

        Issue actions

          Item click inside the InfoWindow · Issue #517 · fullstackreact/google-maps-react