We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want this to work personally and it's also part of the spec, but the library I'm using doesn't support it: google/material-design-lite#5030
There's a workaround solution proposed here: google/material-design-lite#5030
document.querySelector('.dialog-show').addEventListener('click', function() { document.querySelector('dialog').showModal(); document.querySelector('dialog').addEventListener('click', outsideDialog); }); function outsideDialog(event) { var dialog = this; var rect = dialog.getBoundingClientRect(); var isInDialog = ( rect.top <= event.clientY && event.clientY <= rect.top + rect.height && rect.left <= event.clientX && event.clientX <= rect.left + rect.width ); if (!isInDialog) { dialog.close(); dialog.removeEventListener('click', outsideDialog); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want this to work personally and it's also part of the spec, but the library I'm using doesn't support it:
google/material-design-lite#5030
There's a workaround solution proposed here: google/material-design-lite#5030
The text was updated successfully, but these errors were encountered: