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

feat: support the dialog element #3902

Merged
merged 6 commits into from
Feb 21, 2023
Merged

feat: support the dialog element #3902

merged 6 commits into from
Feb 21, 2023

Conversation

straker
Copy link
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
lib/commons/dom/is-inert.js Outdated Show resolved Hide resolved
lib/commons/dom/is-inert.js Outdated Show resolved Hide resolved
lib/commons/dom/is-inert.js Outdated Show resolved Hide resolved
lib/commons/dom/get-modal-dialog.js Outdated Show resolved Hide resolved
lib/commons/dom/get-modal-dialog.js Outdated Show resolved Hide resolved
lib/commons/dom/get-modal-dialog.js Outdated Show resolved Hide resolved
// dialog are treated as inert by the
// browser
const modalDialog = getModalDialog();
if (modalDialog && !contains(modalDialog, vNode)) {
Copy link
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