Merge pull request #661 from lesliele/master

Dropdown组件嵌套使用trigger
This commit is contained in:
Aresn 2020-09-14 11:09:38 +08:00 committed by GitHub
commit 20b79de43e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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