-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add preventClose #9
Comments
This looks like an example of something that should not be done as a Custom Element because it's not actually extending HTMLElement. The web component is being used as a convenience for adding arbitrary javascript via the DOM, it's being added to the DOM, but it doesn't actually have any reason to be in the DOM. Why not use a port instead? How web components was originally envisioned was as leaf-node or light-DOM-using components |
Following arguments for declaring this behavior in the DOM:
|
Personally, I like the idea to enable the view to prevent closing the window without the ceremony. What about we put this example somewhere here with a caveat mentioning that it's not exactly a "pure" way to do it? My deal with Evan at the time was that outside of maintenance the |
The text was updated successfully, but these errors were encountered: