Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@GoldenKoopa
Copy link

when selecting the country from the country list, the click event is artificially created
therefore there is no mouse position and d3.mouse(svg.node()) throws errors which causes the close button to not get assigned its closing function

this is fixed by only calling it if there is a mouse position and otherwise assigning values ([0, 0])

@GoldenKoopa
Copy link
Author

accidentally pushed wrong changes, should now be correct

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.

1 participant