question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inconsistency between input event and beforeinput event

See original GitHub issue

Now beforeinput event is InputEvent (because it is defined with addedTypes here). On the other hand, input event is Event (this is from HTML Standard).

beforeinput event is defined in UIEvents and here it is defined that input is also InputEvent.

I think input event should be InputEvent.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
saschanazcommented, May 15, 2022

Sorry for not reading the latest version of the comment 😬

Anyway, please feel free to open new issues when you find one! 👍

1reaction
L1Qcommented, May 15, 2022

And that works without union type, right? thinking

yep

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTMLElement: beforeinput event - Web APIs | MDN
Returns a DataTransfer object containing information about richtext or plaintext data being added to or removed from editable content.
Read more >
javascript - How to preview the result of a beforeinput event?
I'm not looking for alternative ways to do input validation; I'm already well-aware of methods involving the keypress and input events, as well ......
Read more >
UI Events - W3C
This specification defines UI Events which extend the DOM Event objects defined in [DOM]. UI Events are those typically implemented by visual ...
Read more >
How to Work with Forms, Inputs and Events in React - Medium
This article covers how to capture text input and input via other form elements like , , and <option> in React.
Read more >
feature is currently unavailable due to an internal error
Canceling the default action of a keydown event MUST NOT affect its ... the respective beforeinput and input (and keypress if supported) events...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found