Normalise v-ckick-outside-x for Select
This commit is contained in:
parent
d552ad18d7
commit
4a9974f631
2 changed files with 682 additions and 489 deletions
File diff suppressed because it is too large
Load diff
|
@ -2,6 +2,7 @@
|
||||||
<div
|
<div
|
||||||
:class="classes"
|
:class="classes"
|
||||||
v-click-outside.capture="onClickOutside"
|
v-click-outside.capture="onClickOutside"
|
||||||
|
v-click-outside:mousedown.capture="onClickOutside"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
ref="reference"
|
ref="reference"
|
||||||
|
@ -465,6 +466,10 @@
|
||||||
},
|
},
|
||||||
onClickOutside(event){
|
onClickOutside(event){
|
||||||
if (this.visible) {
|
if (this.visible) {
|
||||||
|
if (event.type === 'mousedown') {
|
||||||
|
event.preventDefault();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.filterable) {
|
if (this.filterable) {
|
||||||
const input = this.$el.querySelector('input[type="text"]');
|
const input = this.$el.querySelector('input[type="text"]');
|
||||||
|
|
Loading…
Add table
Reference in a new issue