Skip to content

lukewarlow/dialog-closedby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Proposal: whatwg/html#9373

Code based on https://github.com/keithamus/invoker-buttons-proposal

This adds a new closedBy property and closedby attribute to the HTMLDialogElement.

Keyword Description
'none' No automatic closing.
'closerequest' Close watchers trigger close
'any' Light dismiss and close watchers trigger close

The default is an 'auto' behaviour with no matching keyword. This maintains existing behaviour, 'closerequest' for modal dialogs, else 'none'.