Skip to content

Commit 9aa34c8

Browse files
committed
[focus] fix find first input
1 parent 20be60b commit 9aa34c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/focus/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export function focus(instance, $this: Vue) {
77
if (!target || !target.length) return
88

99
if (!target.is('input')) {
10-
target = target.find('> input')
10+
target = target.find('input').first()
1111
}
1212

1313
target.focus()

0 commit comments

Comments
 (0)