Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mary-ext opened this issue Jan 25, 2024 · 1 comment · Fixed by #36439
Closed

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

mary-ext opened this issue Jan 25, 2024 · 1 comment · Fixed by #36439
Labels
area: DOM/CSSOM Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help!

Comments

@mary-ext
Copy link

mary-ext commented Jan 25, 2024

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
@mary-ext mary-ext added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jan 25, 2024
@github-actions github-actions bot added the Content:WebAPI Web API docs label Jan 25, 2024
@Josh-Cena Josh-Cena added help wanted If you know something about this topic, we would love your help! area: DOM/CSSOM and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jun 5, 2024
@Josh-Cena
Copy link
Member

Related: #31014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: DOM/CSSOM Content:WebAPI Web API docs help wanted If you know something about this topic, we would love your help!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants