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

[dialog] Fix 'onDismiss' called when mousedown and click have different targets #239

Conversation

venikx
Copy link

@venikx venikx commented Jul 24, 2019

In the assumption #132 is considered unexpected, this PR should fix #132.

@tmcw
Copy link
Contributor

tmcw commented Aug 1, 2019

I suspect that the reach-ui style would prefer a ref created via the Component² - https://ui.reach.tech/component-component#refs.

@venikx
Copy link
Author

venikx commented Aug 1, 2019

The following PR #246 fixes the same issue, but uses the current project coding standard, instead of hooks.

@venikx venikx closed this Aug 1, 2019
@venikx venikx deleted the bugfix/onDismiss-fires-when-dragging-outside-dialog branch May 5, 2020 10:28
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.

Dialog: onDismiss fires when selecting text and releasing mouse outside of modal
2 participants