Skip to content

Commit c1ac9df

Browse files
committed
fix: fixed arrow navigation flag
1 parent 8fb8c19 commit c1ac9df

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/VueSimpleDropdown.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ const popoverKeydown = (e: KeyboardEvent) => {
5252
}
5353
}
5454
const show = () => {
55-
document.addEventListener('keydown', popoverKeydown)
55+
if (props.enableArrowNavigation) {
56+
document.addEventListener('keydown', popoverKeydown)
57+
}
5658
}
5759
5860
const hide = () => {

0 commit comments

Comments
 (0)