Skip to content

cancel event incorrectly defined as not bubbling for <input> #31910

@mary-ext

Description

@mary-ext

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 bubble cancel 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 bubble

Do 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions