demo · v136

Cancel Event Tracer

Every path that can close a <dialog> — ESC, backdrop click, programmatic close(), the new command="request-close" attribute, and the new HTMLDialogElement.requestClose() method — on the same dialog. The tracer logs whether cancel fires before close, and whether preventDefault() in cancel stops the dialog from closing.

event log

Edit something

Close via ESC, backdrop click, the close button, or the request-close button below.

see also