-
Notifications
You must be signed in to change notification settings - Fork 131
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] InfoWindow automatically closes when the map moves. #628
Comments
Hi @Bcavez, thanks for taking the time to report the issue! It looks like a bug indeed. |
I think this issue should be re-opened as case N°1 has indeed been fixed, but not case N°2. |
@Bcavez Can you provide an example for me to reproduce this? Looking at the example here: https://visgl.github.io/react-google-maps/examples/markers-and-infowindows (the marker in florida is bound to an infowindow, as can be seen here) it all seems to work as expected. |
Yes you're right, you can disregard my comment. |
Description
On version 1.4.2, the InfoWindow automatically closes when the map is moved. Which is particularly annoying because when an InfoWindow is not entirely in the viewport, the map is automatically moved in order to fully show the infowindow, which means that the InfoWindow is opened then instantly closed.
Looking at it, I can see that the onClose event is triggered whenever the map is being moved.
I don't know if this is relevant, but I'm using the infowindow on an advancermarker and there are also clusters on the map.
On version 1.1.3, everything works fine. When opening the InfoWindow, it stays open. When moving the map, it stays open.
Steps to Reproduce
First case:
Second case:
Environment
Logs
No response
The text was updated successfully, but these errors were encountered: