Update dropdown.vue

This commit is contained in:
Aresn 2020-09-14 11:09:14 +08:00 committed by GitHub
parent 749011c645
commit 2d3d71ea93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;