Skip to content

feat: support the dialog element#3902

Merged
straker merged 6 commits intodevelopfrom
dialog
Feb 21, 2023
Merged

feat: support the dialog element#3902
straker merged 6 commits intodevelopfrom
dialog

Conversation

@straker
Copy link
Copy Markdown
Contributor

@straker straker commented Jan 30, 2023

Closes: #3463

@straker straker requested a review from a team as a code owner January 30, 2023 16:11
// dialog are treated as inert by the
// browser
const modalDialog = getModalDialog();
if (modalDialog && !contains(modalDialog, vNode)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does tell me that if we have nested open modals, we should grab the outer-most one. The way you implemented that should work though, since querySelectorAll is in that order already.

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.

Support the <dialog> element

2 participants