Phenomenon
In Edge on Windows, the input event may fire multiple times for a single keystroke, causing event handlers to execute more than expected. This can lead to performance issues and incorrect behavior.
Reproduction example
- Create a contenteditable div.
- Add an event listener for the
inputevent that logs each event. - Type a single character.
- Observe how many times the
inputevent fires.
Observed behavior
- In Edge on Windows, the
inputevent may fire 2-3 times for a single keystroke. - Event handlers are executed multiple times unnecessarily.
- This can cause performance degradation and incorrect application behavior.
Expected behavior
- The
inputevent should fire exactly once per user input action. - Event duplication should not occur.
- The event should accurately represent the actual input change.