Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Fix click outside bug in modal #28

Merged
merged 1 commit into from
Dec 15, 2020
Merged

Fix click outside bug in modal #28

merged 1 commit into from
Dec 15, 2020

Conversation

raymondjacobson
Copy link
Member

The bug called out in
AudiusProject/audius-client#125 (comment)

Is due to clicking on the "X" being a click on an SVG element rather than an HTML element. The solution is to switch the check for Element, which supports closest https://developer.mozilla.org/en-US/docs/Web/API/Element/closest

@raymondjacobson raymondjacobson mentioned this pull request Dec 15, 2020
@piazzatron
Copy link
Contributor

wow. nice

@raymondjacobson raymondjacobson merged commit 876b51c into master Dec 15, 2020
@raymondjacobson raymondjacobson deleted the rj-modal-bugfix branch December 15, 2020 18:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants