cancel event incorrectly defined as not bubbling for <input> #31910
Labels
area: DOM/CSSOM
Content:WebAPI
Web API docs
help wanted
If you know something about this topic, we would love your help!
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/cancel_event
What specific section or headline is this issue about?
No response
What information was incorrect, unhelpful, or incomplete?
<input type=file>
does in fact bubblecancel
events if you cancel the file picker dialog.What did you expect to see?
Differentiate between
<dialog>
and<input>
, because this got me while I was building a file picker inside a dialog, cancelling the file picker dialog closes the dialog as well due to it being bubbled.<dialog>
: does not bubble<input>
: does bubbleDo you have any supporting links, references, or citations?
https://codepen.io/mary-ext/pen/ExMwGwr
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/api/htmlelement/cancel_event
The text was updated successfully, but these errors were encountered: