click oustide console error fixed
This commit is contained in:
parent
02165b1769
commit
da3d2e17a0
@ -645,12 +645,14 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
closeIfClickedOutside(event) {
|
closeIfClickedOutside(event) {
|
||||||
if (!document.getElementById('search-field-' + this._uid).contains(event.target) && event.target.getAttribute('data-btn') != 'btn btn-link') {
|
if (document.getElementById('search-field-' + this._uid)) {
|
||||||
this.visible.options = false;
|
if (!document.getElementById('search-field-' + this._uid).contains(event.target) && event.target.getAttribute('data-btn') != 'btn btn-link') {
|
||||||
this.visible.operator = false;
|
this.visible.options = false;
|
||||||
this.visible.values = false;
|
this.visible.operator = false;
|
||||||
|
this.visible.values = false;
|
||||||
|
|
||||||
document.removeEventListener('click', this.closeIfClickedOutside);
|
document.removeEventListener('click', this.closeIfClickedOutside);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user