fix trigger
This commit is contained in:
parent
af8c2e5e59
commit
749011c645
1 changed files with 5 additions and 1 deletions
|
@ -113,7 +113,11 @@
|
||||||
if (this.trigger !== 'click') {
|
if (this.trigger !== 'click') {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// this.currentVisible = !this.currentVisible;
|
||||||
|
var $parent = this.hasParent();
|
||||||
|
if (!$parent) {
|
||||||
this.currentVisible = !this.currentVisible;
|
this.currentVisible = !this.currentVisible;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleRightClick () {
|
handleRightClick () {
|
||||||
if (this.trigger === 'custom') return false;
|
if (this.trigger === 'custom') return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue