-
Notifications
You must be signed in to change notification settings - Fork 2.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(ripple): Deactivate on contextmenu event #3759
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3759 +/- ##
=========================================
Coverage ? 98.52%
=========================================
Files ? 120
Lines ? 5236
Branches ? 658
=========================================
Hits ? 5159
Misses ? 77
Partials ? 0
Continue to review full report at Codecov.
|
All 557 screenshot tests passed for commit a18b32e vs. |
I'm not sure this is resolving all of the use cases where the ripple ends up stuck being activted. If you click on a button and then open a context menu on the button it ends up stuck again. |
I haven't been able to reproduce what you're describing, even if I purposely try opening the context menu before the first click's ripple activation finishes. The only state that stays for me is the focus state, which is expected. Can you give full repro steps when you get a chance? |
I was able to reproduce using these steps on OSX/Chrome. On Linux/Chrome substitute the following for step 2.
|
I've managed to reproduce this in Chrome + device emulation on desktop, but I think it's a device emulation quirk. I tested with demos/button.html with an added style to color (GitHub doesn't allow attaching videos, but I've sent a few to Will outside of this thread.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Issues only reproducible with the device emulator.
All 557 screenshot tests passed for commit 94cf727 vs. |
Fixes #3524.
While testing I wasn't able to get tap-hold to bring up the context menu at all on mobile for some reason... but I confirmed that this fixes the issue for right-click in Chrome and Safari on OS X, which are the only browsers I could reproduce it on.
Tested on Win10 with both mouse and touch. IE is N/A because it doesn't use JS for ripple effect.