diff --git a/packages/@vuepress/theme-default/components/DropdownLink.vue b/packages/@vuepress/theme-default/components/DropdownLink.vue
index 7812984a7b..d67f85cba4 100644
--- a/packages/@vuepress/theme-default/components/DropdownLink.vue
+++ b/packages/@vuepress/theme-default/components/DropdownLink.vue
@@ -7,7 +7,7 @@
class="dropdown-title"
type="button"
:aria-label="dropdownAriaLabel"
- @click="toggle"
+ @click="setOpen(!open)"
>
{{ item.text }}
@@ -49,7 +49,7 @@
@@ -86,8 +86,8 @@ export default {
},
methods: {
- toggle () {
- this.open = !this.open
+ setOpen (value) {
+ this.open = value
},
isLastItemOfArray (item, array) {