From 749011c645725a866178ec881fe1882d38cac383 Mon Sep 17 00:00:00 2001 From: lesliele <1224622183@qq.com> Date: Fri, 4 Sep 2020 00:21:11 +0800 Subject: [PATCH 1/2] fix trigger --- src/components/dropdown/dropdown.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/dropdown/dropdown.vue b/src/components/dropdown/dropdown.vue index 48660c223..65168ab21 100644 --- a/src/components/dropdown/dropdown.vue +++ b/src/components/dropdown/dropdown.vue @@ -113,7 +113,11 @@ if (this.trigger !== 'click') { return false; } - this.currentVisible = !this.currentVisible; + // this.currentVisible = !this.currentVisible; + var $parent = this.hasParent(); + if (!$parent) { + this.currentVisible = !this.currentVisible; + } }, handleRightClick () { if (this.trigger === 'custom') return false; From 2d3d71ea934a987c15214836dec8897d3ff3d1f0 Mon Sep 17 00:00:00 2001 From: Aresn Date: Mon, 14 Sep 2020 11:09:14 +0800 Subject: [PATCH 2/2] Update dropdown.vue --- src/components/dropdown/dropdown.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/dropdown/dropdown.vue b/src/components/dropdown/dropdown.vue index 65168ab21..e51e1614e 100644 --- a/src/components/dropdown/dropdown.vue +++ b/src/components/dropdown/dropdown.vue @@ -113,11 +113,9 @@ if (this.trigger !== 'click') { return false; } - // this.currentVisible = !this.currentVisible; - var $parent = this.hasParent(); - if (!$parent) { - this.currentVisible = !this.currentVisible; - } + // #661 + const $parent = this.hasParent(); + if (!$parent) this.currentVisible = !this.currentVisible; }, handleRightClick () { if (this.trigger === 'custom') return false;