镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Item click inside the InfoWindow #517

Description

Hi,

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

Activity

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

  2. josepBasetis commented on May 5, 2022

    @josepBasetis

    i'm having this same issue. any solution ?

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

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

      Issue actions