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') { if (this.trigger !== 'click') {
return false; return false;
} }
// this.currentVisible = !this.currentVisible; // #661
var $parent = this.hasParent(); const $parent = this.hasParent();
if (!$parent) { if (!$parent) this.currentVisible = !this.currentVisible;
this.currentVisible = !this.currentVisible;
}
}, },
handleRightClick () { handleRightClick () {
if (this.trigger === 'custom') return false; if (this.trigger === 'custom') return false;