Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

dialog element - closing when clicking outside #1667

Closed
o-t-w opened this issue Dec 23, 2018 · 2 comments
Closed

dialog element - closing when clicking outside #1667

o-t-w opened this issue Dec 23, 2018 · 2 comments

Comments

@o-t-w
Copy link

o-t-w commented Dec 23, 2018

It is overwhelmingly common question on Stack Overflow. Its something that is often not implemented well (see The Dangers of Stopping Event Propogation)
This popular blog post documents one far from perfect method of closing the <dialog> by clicking outside.
Could we please get an easy way to do this?

@OmidHekayati
Copy link

As it proposed in #860 I also think <dialog> must have a modal bool attribute <dialog modal> for these reasons:

  • closing when clicking outside dialog
  • style scrim behind the dialog like dark or blur behind modal dialog!
  • ...

@siusin
Copy link
Contributor

siusin commented Jul 29, 2019

Thanks @o-t-w and @OmidHekayati .

We're closing this issue on the W3C HTML specification because the W3C and WHATWG are now working together on HTML, and all issues are being discussed on the WHATWG repository.

If you filed this issue and you still think it is relevant, please open a new issue on the WHATWG repository and reference this issue (if there is useful information here). Before you open a new issue, please check for existing issues on the WHATWG repository to avoid duplication.

If you have questions about this, please open an issue on the W3C HTML WG repository or send an email to public-html@w3.org.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants