Skip to content

Commit 5a992e9

Browse files
committed
docs: tweak
1 parent 94b4e3a commit 5a992e9

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

website/docs/12.x/docs/api/events/user-event.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ type(
8686
element: ReactTestInstance,
8787
text: string,
8888
options?: {
89-
skipPress?: boolean
90-
submitEditing?: boolean
89+
skipPress?: boolean;
90+
skipBlur?: boolean;
91+
submitEditing?: boolean;
9192
}
9293
```
9394
@@ -109,6 +110,7 @@ This function will add text to the text already present in the text input (as sp
109110
### Options {#type-options}
110111
111112
- `skipPress` - if true, `pressIn` and `pressOut` events will not be triggered.
113+
- `skipBlur` - if true, `endEditing` and `blur` events will not be triggered when typing is complete.
112114
- `submitEditing` - if true, `submitEditing` event will be triggered after typing the text.
113115
114116
### Sequence of events {#type-sequence}

website/docs/13.x-next/docs/api/events/user-event.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ type(
8080
element: ReactTestInstance,
8181
text: string,
8282
options?: {
83-
skipPress?: boolean
84-
submitEditing?: boolean
83+
skipPress?: boolean;
8584
skipBlur?: boolean;
85+
submitEditing?: boolean;
8686
}
8787
```
8888
@@ -104,8 +104,8 @@ This function will add text to the text already present in the text input (as sp
104104
### Options {#type-options}
105105
106106
- `skipPress` - if true, `pressIn` and `pressOut` events will not be triggered.
107+
- `skipBlur` - if true, `endEditing` and `blur` events will not be triggered when typing is complete.
107108
- `submitEditing` - if true, `submitEditing` event will be triggered after typing the text.
108-
- `skipBlur` - if true, `endEditing` and `blur` events will not be triggered when typing is complete. This is useful in scenarios where you want to prevent the TextInput from losing focus or avoid triggering certain actions associated with blur events.
109109
110110
### Sequence of events {#type-sequence}
111111

0 commit comments

Comments
 (0)