Skip to content

Commit c8ab9f9

Browse files
mrpmohiburrahmanmdjastrzebski
authored andcommitted
docs: add skipBlur option to doc
1 parent 2a5c35a commit c8ab9f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ type(
8282
options?: {
8383
skipPress?: boolean
8484
submitEditing?: boolean
85+
skipBlur?: boolean;
8586
}
8687
```
8788
@@ -104,6 +105,7 @@ This function will add text to the text already present in the text input (as sp
104105
105106
- `skipPress` - if true, `pressIn` and `pressOut` events will not be triggered.
106107
- `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.
107109
108110
### Sequence of events {#type-sequence}
109111
@@ -134,6 +136,7 @@ The `pressIn` and `pressOut` events are sent by default but can be skipped by pa
134136
- `blur`
135137
136138
The `submitEditing` event is skipped by default. It can sent by setting the `submitEditing: true` option.
139+
The `endEditing` and `blur` events can also be skipped by passing the `skipBlur: true` option.
137140
138141
## `clear()`
139142

0 commit comments

Comments
 (0)