-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Move popover invoker reset later #11304
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
Conversation
Per whatwg#11246 (comment), this moves the reset of the popover invoker later in the "hide a popover" algorithm.
Since the `beforetoggle` event can be cancelled, the invoker shouldn't be changed until after that event. See the spec discussion here: whatwg/html#11246 (comment). And the spec PR here: whatwg/html#11304 See my comment here, but I think this isn't observable/testable: whatwg/html#11246 (comment) Bug: 364669918 Change-Id: Ia6cbd7b2839ec9b742e2883a49f45c2544260ce6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6520560 Reviewed-by: Joey Arhar <jarhar@chromium.org> Commit-Queue: Joey Arhar <jarhar@chromium.org> Auto-Submit: Mason Freed <masonf@chromium.org> Cr-Commit-Position: refs/heads/main@{#1459712}
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
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. Let's give this a day or two to see if people figure out how to test it, or if it's just editorial.
This PR made me realize that
is currently ran only if |
I 100% agree - see my comment here. At least in Chromium, that's not actually where it gets cleared, for good reasons. I think the spec should change to match. |
I've merged this now, and closed #11246 as part of doing so. Please track any other suggestions in new open bugs! |
Per #11246 (comment), this moves the reset of the popover invoker later in the "hide a popover" algorithm.
(See WHATWG Working Mode: Changes for more details.)
/popover.html ( diff )