Skip to content

Commit 8029d4f

Browse files
authored
Add dialog closedby="" and requestClose()
The new closedby="" attribute for <dialog> can control what closes the dialog, including allowing new light dismiss behavior, or disabling close requests for modal dialogs. The new dialogEl.requestClose() method acts as if a close request was issued by the user, firing the cancel event, and then (if the event isn't canceled) firing the close event and closing the dialog. This method does not require user activation. The existing closeWatcher.requestClose() method was updated to not require user activation either, to match this. Closes #9373. Closes #10164. Closes #10592. See also: openui/open-ui#834, openui/open-ui#950 (especially openui/open-ui#950 (reply in thread)), openui/open-ui#960, openui/open-ui#961.
1 parent ad1450d commit 8029d4f

File tree

1 file changed

+337
-52
lines changed

1 file changed

+337
-52
lines changed

0 commit comments

Comments
 (0)