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

InfoBox rerender when hover on marker (when state changes) #682

Closed
exoslav opened this issue Oct 26, 2017 · 4 comments
Closed

InfoBox rerender when hover on marker (when state changes) #682

exoslav opened this issue Oct 26, 2017 · 4 comments

Comments

@exoslav
Copy link

exoslav commented Oct 26, 2017

Hello guys, I just migrated form react-google-maps version 7.3.0 to 9.2.0. I am experiencing problematic behavior after migration (this problem seems to started to appear in 8.0.0 when infoBox component was rewritten to pureComponent). I have three markers on my map with custom icon. When I hover on marker, icon changes (state of component is is changed). When I click on the marker, infobox will show relatively to marker. But when infobox is opened and I hover on different marker, infobox disappear for a millisecond and shows again. State changes, because of icon change, but it seems that infobox is re rendered again as well (but did not experienced such behavior in 7.3.0). Does anybody have similar problem?

You can copy paste JS code from this link and put it to demo page, infobox section, to simulate such behaviour. Icons are default google maps icons, but icon changing code is implemented. Tested in Chrome.

@tomchentw
Copy link
Owner

@exoslav You can copy paste JS code from this link

You didn't save so that the link doesn't contain maps code

@exoslav
Copy link
Author

exoslav commented Oct 27, 2017

@tomchentw strange, I can see JS code clearly. Posting link again: https://liveweave.com/zbDKQn

@tomchentw
Copy link
Owner

Thanks! May have spotted the issue.

@tomchentw
Copy link
Owner

Released v9.2.1

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

2 participants