Skip to content
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

Only restore popover focus if focus is in the popover #9018

Merged
merged 3 commits into from
May 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion source
Original file line number Diff line number Diff line change
Expand Up @@ -82283,7 +82283,9 @@ dictionary <dfn dictionary>DragEventInit</dfn> : <span>MouseEventInit</span> {
<ol>
<li><p>Set <var>element</var>'s <span>previously focused element</span> to null.</p></li>

<li><p>If <var>focusPreviousElement</var> is true, then run the <span>focusing steps</span> for
<li><p>If <var>focusPreviousElement</var> is true and <var>document</var>'s <span>focused area
of the document</span>'s <span>DOM anchor</span> is a <span>shadow-including inclusive
descendant</span> of <var>element</var>, then run the <span>focusing steps</span> for
<var>previouslyFocusedElement</var>; the viewport should not be scrolled by doing this
step.</p></li>
</ol>
Expand Down