Skip to content

Commit

Permalink
Merge pull request #661 from lesliele/master
Browse files Browse the repository at this point in the history
Dropdown组件嵌套使用trigger
  • Loading branch information
icarusion authored Sep 14, 2020
2 parents 3bdbdc0 + 2d3d71e commit 20b79de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/dropdown/dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@
if (this.trigger !== 'click') {
return false;
}
this.currentVisible = !this.currentVisible;
// #661
const $parent = this.hasParent();
if (!$parent) this.currentVisible = !this.currentVisible;
},
handleRightClick () {
if (this.trigger === 'custom') return false;
Expand Down

0 comments on commit 20b79de

Please sign in to comment.