-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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(Popup|Portal): do not close when mouse click was occurred inside #3575
Conversation
|
Codecov Report
@@ Coverage Diff @@
## master #3575 +/- ##
==========================================
- Coverage 99.81% 99.81% -0.01%
==========================================
Files 174 174
Lines 2734 2733 -1
==========================================
- Hits 2729 2728 -1
Misses 5 5
Continue to review full report at Codecov.
|
@joergbaier @mihai-dinculescu Thank you for addressing this 👍 We have a similar stuff in |
I don't see any way around using However, I do see why we need to be more thoughtful before merging this. Touch gestures do not provide After further consideration, I now think that we should use I should have a rework of this branch ready soon. |
Ok @layershifter, it should look much better now! |
…emantic-Org#3575) * Fix * Rework. * Rework of rework. * Fix typo. * fix path to PopupOffsetExample * fix path to PopupExampleHideOnScroll * naming update, set `null` instead of `delete`
This PR is my proposed fix for #3554.
Afaik the
onClick
event provides no information whatsoever about the position where the mouse button was pressed down. For this reason I've added a listener formouseDown
and I'm storing the latest occurence of this event in the component.I would like to also write a unit test but I'm not really sure how to go about mocking a click that originates in one place and ends in another.