Skip to content

Commit a711ff5

Browse files
author
Damian Dulisz
committed
Add innertia to options, rename inputName to name, fix shentao#357
1 parent a35d40d commit a711ff5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/Multiselect.vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
@keyup.esc="deactivate()"
1111
class="multiselect">
1212
<slot name="carret">
13-
<div @mousedown.prevent="toggle()" class="multiselect__select"></div>
13+
<div @mousedown.prevent.stop="toggle()" class="multiselect__select"></div>
1414
</slot>
1515
<div ref="tags" class="multiselect__tags">
1616
<div class="multiselect__tags-wrap" v-show="visibleValue.length > 0">
@@ -31,7 +31,7 @@
3131
</transition>
3232
<input
3333
ref="search"
34-
:name="inputName"
34+
:name="name"
3535
:id="id"
3636
type="text"
3737
autocomplete="off"
@@ -47,7 +47,7 @@
4747
@keydown.down.prevent="pointerForward()"
4848
@keydown.up.prevent="pointerBackward()"
4949
@keydown.enter.prevent.stop.self="addPointerElement($event)"
50-
@keydown.delete="removeLastElement()"
50+
@keydown.delete.stop="removeLastElement()"
5151
class="multiselect__input"/>
5252
<span
5353
v-if="!searchable"
@@ -74,7 +74,7 @@
7474
<span
7575
v-if="!(option && (option.$isLabel || option.$isDisabled))"
7676
:class="optionHighlight(index, option)"
77-
@click="select(option)"
77+
@click.stop="select(option)"
7878
@mouseenter.self="pointerSet(index)"
7979
:data-select="option && option.isTag ? tagPlaceholder : selectLabelText"
8080
:data-selected="selectedLabelText"
@@ -120,7 +120,7 @@
120120
* @default ''
121121
* @type {String}
122122
*/
123-
inputName: {
123+
name: {
124124
type: String,
125125
default: ''
126126
},
@@ -529,6 +529,7 @@ fieldset[disabled] .multiselect {
529529
border-bottom-left-radius: 5px;
530530
border-bottom-right-radius: 5px;
531531
z-index: 50;
532+
-webkit-overflow-scrolling: touch;
532533
}
533534
534535
.multiselect__content {

0 commit comments

Comments
 (0)