Skip to content

Commit 88d1ae2

Browse files
committed
fix(theme-default): click to close dropdown that opened by tab and click
1 parent 563156c commit 88d1ae2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/@vuepress/theme-default/src/components/DropdownLink.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ export default defineComponent({
110110
const isTriggerByTab = e.detail === 0
111111
if (isTriggerByTab) {
112112
open.value = !open.value
113+
} else {
114+
open.value = false
113115
}
114116
}
115117

0 commit comments

Comments
 (0)