File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,13 @@ export async function type(
33
33
const keys = parseKeys ( text ) ;
34
34
35
35
if ( ! options ?. skipPress ) {
36
- await wait ( this . config ) ;
37
36
dispatchOwnHostEvent ( element , 'pressIn' , EventBuilder . Common . touch ( ) ) ;
38
37
}
39
38
40
- await wait ( this . config ) ;
41
39
dispatchOwnHostEvent ( element , 'focus' , EventBuilder . Common . focus ( ) ) ;
42
40
43
41
if ( ! options ?. skipPress ) {
42
+ await wait ( this . config ) ;
44
43
dispatchOwnHostEvent ( element , 'pressOut' , EventBuilder . Common . touch ( ) ) ;
45
44
}
46
45
@@ -55,21 +54,22 @@ export async function type(
55
54
56
55
const finalText = element . props . value ?? currentText ;
57
56
57
+ await wait ( this . config ) ;
58
+
58
59
if ( options ?. submitEditing ) {
59
- await wait ( this . config ) ;
60
60
dispatchOwnHostEvent (
61
61
element ,
62
62
'submitEditing' ,
63
63
EventBuilder . TextInput . submitEditing ( finalText )
64
64
) ;
65
65
}
66
66
67
- await wait ( this . config ) ;
68
67
dispatchOwnHostEvent (
69
68
element ,
70
69
'endEditing' ,
71
70
EventBuilder . TextInput . endEditing ( finalText )
72
71
) ;
72
+
73
73
dispatchOwnHostEvent ( element , 'blur' , EventBuilder . Common . blur ( ) ) ;
74
74
}
75
75
You can’t perform that action at this time.
0 commit comments