Skip to content

Commit 3818d0c

Browse files
committed
chore: update
1 parent 12b0421 commit 3818d0c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/core/src/focus/Focusable.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,7 @@ export function useFocus({
9494
return active.value
9595
},
9696
set(value) {
97-
if (value) {
98-
focus(unref(id))
99-
} else {
100-
focus(null)
101-
}
97+
focus(value ? unref(id) : null)
10298
},
10399
}),
104100
}

0 commit comments

Comments
 (0)