-
Notifications
You must be signed in to change notification settings - Fork 2k
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 label tap by checking matched label pairs #5039
Conversation
29c7077
to
a77d64e
Compare
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.
SFTM
@azakus Is this PR mergeable with just the smoke test or would you like some unit tests for this one as well? |
Added tests |
Remove broken `while` loop, as that case is already handled by the mouseCancellor code
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.
Just add one test and otherwise seems good.
let labels = el.labels; | ||
// IE doesn't have `labels` and Safari doesn't populate `labels` | ||
// if element is in a shadowroot. | ||
// In this instance, finding the non-ancestor labels is enough, |
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.
Let's test that case.
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.
Done
Fixes #4717