Skip to content

Commit 0a12fd8

Browse files
authored
Update forms-and-events.md
1 parent c8c50f6 commit 0a12fd8

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

docs/basic/getting-started/forms-and-events.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -112,23 +112,11 @@ Of course, if you're making any sort of significant form, [you should use Formik
112112
| FormEvent | Event that occurs whenever a form or form element gets/loses focus, a form element value is changed or the form is submitted. |
113113
| InvalidEvent | Fired when validity restrictions of an input fails (e.g `<input type="number" max="10">` and someone would insert number 20). |
114114
| KeyboardEvent | User interaction with the keyboard. Each event describes a single key interaction. |
115+
| InputEvent | Event that occurs before the value of `<input>`, `<select>` and `<textarea>` changes. |
115116
| MouseEvent | Events that occur due to the user interacting with a pointing device (e.g. mouse) |
116117
| PointerEvent | Events that occur due to user interaction with a variety pointing of devices such as mouse, pen/stylus, a touchscreen and which also supports multi-touch. Unless you develop for older browsers (IE10 or Safari 12), pointer events are recommended. Extends UIEvent. |
117118
| TouchEvent | Events that occur due to the user interacting with a touch device. Extends UIEvent. |
118119
| TransitionEvent | CSS Transition. Not fully browser supported. Extends UIEvent |
119120
| UIEvent | Base Event for Mouse, Touch and Pointer events. |
120121
| WheelEvent | Scrolling on a mouse wheel or similar input device. (Note: `wheel` event should not be confused with the `scroll` event) |
121122
| SyntheticEvent | The base event for all above events. Should be used when unsure about event type |
122-
123-
<details>
124-
<summary><b>What about <code>InputEvent</code>?</b></summary>
125-
126-
You've probably noticed that there is no `InputEvent`. This is because it is not supported by Typescript as the event itself has no fully browser support and may behave differently in different browsers. You can use `KeyboardEvent` instead.
127-
128-
Sources:
129-
130-
- https://github.com/microsoft/TypeScript/issues/29441
131-
- https://developer.mozilla.org/en-US/docs/Web/API/InputEvent
132-
- https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event
133-
134-
</details>

0 commit comments

Comments
 (0)