diff --git a/examples/routers/dropdown.vue b/examples/routers/dropdown.vue index e82c54c3..0cd301df 100644 --- a/examples/routers/dropdown.vue +++ b/examples/routers/dropdown.vue @@ -1,14 +1,14 @@ diff --git a/src/components/dropdown/dropdown-item.vue b/src/components/dropdown/dropdown-item.vue index 494c6585..da8509a4 100644 --- a/src/components/dropdown/dropdown-item.vue +++ b/src/components/dropdown/dropdown-item.vue @@ -37,14 +37,11 @@ }, methods: { handleClick () { + if (this.disabled) return; const $parent = findComponentUpward(this, 'Dropdown'); const hasChildren = this.$parent && this.$parent.$options.name === 'Dropdown'; - if (this.disabled) { - this.$nextTick(() => { - $parent.currentVisible = true; - }); - } else if (hasChildren) { + if (hasChildren) { this.$parent.$emit('on-haschild-click'); } else { if ($parent && $parent.$options.name === 'Dropdown') {