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