Normalise v-ckick-outside-x for Select

This commit is contained in:
Graham Fairweather 2018-05-22 07:33:43 +02:00
parent d552ad18d7
commit 4a9974f631
2 changed files with 682 additions and 489 deletions

File diff suppressed because it is too large Load diff

View file

@ -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"]');