Skip to content

Commit d2e7804

Browse files
committed
fixes
1 parent d5f04d2 commit d2e7804

File tree

1 file changed

+3
-1
lines changed
  • 2-ui/4-forms-controls/3-events-change-input

1 file changed

+3
-1
lines changed

2-ui/4-forms-controls/3-events-change-input/article.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ For other elements: `select`, `input type=checkbox/radio` it triggers right afte
2121

2222
The `input` event triggers every time a value is modified.
2323

24+
Unlike keyboard events, it triggers on any value change, even those that does not involve keyboard actions: pasting with a mouse or using speech recognition to dictate the text.
25+
2426
For instance:
2527

2628
```html autorun height=40 run
@@ -34,7 +36,7 @@ For instance:
3436

3537
If we want to handle every modification of an `<input>` then this event is the best choice.
3638

37-
Unlike keyboard events it works on any value change, even those that does not involve keyboard actions: pasting with a mouse or using speech recognition to dictate the text.
39+
On the other hand, `input` event doesn't trigger on keyboard input and other actions that do not involve value change, e.g. pressing arrow keys `key:⇦` `key:⇨` while in the input.
3840

3941
```smart header="Can't prevent anything in `oninput`"
4042
The `input` event occurs after the value is modified.

0 commit comments

Comments
 (0)