Should Dialog .show()
close all popovers?
#10708
Labels
needs implementer interest
Moving the issue forward requires implementers to express interest
needs tests
Moving the issue forward requires someone to write tests
topic: dialog
The <dialog> element
topic: popover
The popover attribute and friends
What is the issue with the HTML Standard?
Dialog's show method: https://html.spec.whatwg.org/multipage/interactive-elements.html#dom-dialog-show
Step 6 & 7 show that a dialog, not shown as modal, will close all popovers.
Dialog's
show()
method also does not check for connectedness. This means in an active document, the following script can cause all popovers to hide:This seems strange as there's no observable change to UI being performed by the Dialog, and yet it is closing all popovers as a side effect.
Perhaps between step 3 and 4 we should add a check like:
If this is not connected, then return.
?/cc @josepharhar
The text was updated successfully, but these errors were encountered: