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

fix: set infowindow anchor to null during component unmount #390

Closed
wants to merge 2 commits into from

Conversation

nickrschnelle
Copy link

fix for #386

I had to do a bit of type coercion as @types/google.maps doesn't actually expose all the properties on the resulting object when you create a new google.maps.InfoWindow

@@ -67,7 +72,9 @@ export const InfoWindow = (props: PropsWithChildren<InfoWindowProps>) => {
}

// intentionally shadowing the state variables here
const infoWindow = new google.maps.InfoWindow(infoWindowOptions);
const infoWindow = new google.maps.InfoWindow(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this deserves a comment explaining why there's a need to access this undocumented property.

@usefulthink
Copy link
Collaborator

I'll close this in favor of #393, I'll make sure to list you as Co-Author there :)
Thanks for your help figuring this out!

@nickrschnelle
Copy link
Author

I'll close this in favor of #393, I'll make sure to list you as Co-Author there :) Thanks for your help figuring this out!

thanks for fixing this so fast 😀

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

Successfully merging this pull request may close these issues.

2 participants