Skip to content

Fix lost focus when modals open/close#12437

Merged
Gargron merged 3 commits intomastodon:masterfrom
ClearlyClaire:fixes/inert-lost-focus
Nov 30, 2019
Merged

Fix lost focus when modals open/close#12437
Gargron merged 3 commits intomastodon:masterfrom
ClearlyClaire:fixes/inert-lost-focus

Conversation

@ClearlyClaire
Copy link
Copy Markdown
Contributor

We were trying to restore focus before the inert attribute was unset, which may not work.
Furthermore, wicg-inert introduces a delay between the inert attribute being removed and the element being focusable again. Work around that.

@Gargron Gargron merged commit 35b142a into mastodon:master Nov 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants