-
Notifications
You must be signed in to change notification settings - Fork 841
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
Change EuiOutsideClickDetector to use mousedown and mouseup events #1761
Change EuiOutsideClickDetector to use mousedown and mouseup events #1761
Conversation
@chandlerprall Thoughts on just moving forward with this regardless of what comes from the Chromium issue? They've labelled it |
Yeah, I think this is the right thing to do. |
Will we have to backport this? Potentially to older versions of Kibana? |
That seems like a good idea. We'll have to manually backport only the changes to |
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; pulled locally and tested that changes to EuiOutsideClickDetector keep functionality in Chrome 72 and have the same functionality after I updated to Chrome 73.
@snide How far back would we need to go? |
@thompsongl I'll follow up with @chandlerprall. Depending on how bad the issue is we might need to go pretty far back :/ |
I think the original issue describes the most common case (that I can think of) pretty well: highlighting text in a popover or flyout and having the It's hard to know how common that action & result are |
@thompsongl Given that it's a smaller issue that doesn't break UI (just makes it slightly annoying) I think we should be OK applying it to 6.7.x and 7.0.x kibana. We can monitor github for reports on older versions to see if it's a super large annoyance to people. |
Summary
#1747 raises the potential need to move away from
click
events in certain cases (EuiOutsideClickDetector
) due to browser vendors moving closer to the event target spec. Whenmousedown
andmouseup
target different elements, Chrome 73 now returns the closest common ancestor as itstarget
. Other browsers may soon follow (see below)References:
Checklist
- [ ] This was checked in dark mode- [ ] Any props added have proper autodocs- [ ] Documentation examples were added- [ ] This was checked for breaking changes and labeled appropriately- [ ] This was checked against keyboard-only and screenreader scenarios- [ ] This required updates to Framer X components