File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { notify } from "../notify/notify";
3
3
import { dispatchKeyDown , dispatchKeyUp } from "../utils/dispatchEvents" ;
4
4
import { editableElementSelector , getFocusable } from "../utils/domUtils" ;
5
5
import { ElementWrapper } from "../../typings/ElementWrapper" ;
6
- import { getWrapperForElement } from "../wrappers/wrappers " ;
6
+ import { getOrCreateWrapper } from "../wrappers/ElementWrapperClass " ;
7
7
8
8
export function focus ( wrappers : ElementWrapper [ ] ) : TalonAction [ ] | undefined {
9
9
window . focus ( ) ;
@@ -36,10 +36,7 @@ export async function focusFirstInput() {
36
36
return ;
37
37
}
38
38
39
- const wrapper = getWrapperForElement ( firstInput ) ;
40
- if ( wrapper ) {
41
- focus ( [ wrapper ] ) ;
42
- }
39
+ focus ( [ getOrCreateWrapper ( firstInput ) ] ) ;
43
40
}
44
41
45
42
export function blur ( ) {
You can’t perform that action at this time.
0 commit comments