Skip to content

Commit 16ea7aa

Browse files
authored
InputEvent in forms-and-events.md (#781)
1 parent c8c50f6 commit 16ea7aa

File tree

2 files changed

+2
-26
lines changed

2 files changed

+2
-26
lines changed

README.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1432,6 +1432,7 @@ Of course, if you're making any sort of significant form, [you should use Formik
14321432
| FormEvent | Event that occurs whenever a form or form element gets/loses focus, a form element value is changed or the form is submitted. |
14331433
| InvalidEvent | Fired when validity restrictions of an input fails (e.g `<input type="number" max="10">` and someone would insert number 20). |
14341434
| KeyboardEvent | User interaction with the keyboard. Each event describes a single key interaction. |
1435+
| InputEvent | Event that occurs before the value of `<input>`, `<select>` and `<textarea>` changes. |
14351436
| MouseEvent | Events that occur due to the user interacting with a pointing device (e.g. mouse) |
14361437
| 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. |
14371438
| TouchEvent | Events that occur due to the user interacting with a touch device. Extends UIEvent. |
@@ -1440,19 +1441,6 @@ Of course, if you're making any sort of significant form, [you should use Formik
14401441
| WheelEvent | Scrolling on a mouse wheel or similar input device. (Note: `wheel` event should not be confused with the `scroll` event) |
14411442
| SyntheticEvent | The base event for all above events. Should be used when unsure about event type |
14421443

1443-
<details>
1444-
<summary><b>What about <code>InputEvent</code>?</b></summary>
1445-
1446-
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.
1447-
1448-
Sources:
1449-
1450-
- https://github.com/microsoft/TypeScript/issues/29441
1451-
- https://developer.mozilla.org/en-US/docs/Web/API/InputEvent
1452-
- https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/input_event
1453-
1454-
</details>
1455-
14561444
<!--END-SECTION:forms-and-events-->
14571445

14581446
<!--START-SECTION:context-->

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy