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 eeff5ff commit 2a5c35aCopy full SHA for 2a5c35a
src/user-event/type/type.ts
@@ -68,9 +68,8 @@ export async function type(
68
dispatchEvent(element, 'submitEditing', EventBuilder.TextInput.submitEditing(finalText));
69
}
70
71
- dispatchEvent(element, 'endEditing', EventBuilder.TextInput.endEditing(finalText));
72
-
73
if (!options?.skipBlur) {
+ dispatchEvent(element, 'endEditing', EventBuilder.TextInput.endEditing(finalText));
74
dispatchEvent(element, 'blur', EventBuilder.Common.blur());
75
76
@@ -136,3 +135,4 @@ function isTextChangeAccepted(element: ReactTestInstance, text: string) {
136
135
const maxLength = element.props.maxLength;
137
return maxLength === undefined || text.length <= maxLength;
138
+
0 commit comments