We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7f8d6c commit 1a8d080Copy full SHA for 1a8d080
src/user-event/type/type.ts
@@ -12,6 +12,7 @@ import { parseKeys } from './parse-keys';
12
export interface TypeOptions {
13
skipPress?: boolean;
14
submitEditing?: boolean;
15
+ skipBlur?: boolean;
16
}
17
18
export async function type(
@@ -69,7 +70,9 @@ export async function type(
69
70
71
dispatchEvent(element, 'endEditing', EventBuilder.TextInput.endEditing(finalText));
72
- dispatchEvent(element, 'blur', EventBuilder.Common.blur());
73
+ if (!options?.skipBlur) {
74
+ dispatchEvent(element, 'blur', EventBuilder.Common.blur());
75
+ }
76
77
78
type EmitTypingEventsContext = {
0 commit comments