Skip to content

Commit a2afb99

Browse files
author
kgraff
committed
created additional span to deal with v-if logic
1 parent 00a7c8e commit a2afb99

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

src/Multiselect.vue

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,22 @@
1111
@keyup.esc="deactivate()"
1212
class="multiselect">
1313
<div @mousedown.prevent="toggle()" class="multiselect__select"></div>
14-
<div v-el:tags v-if="multiple" class="multiselect__tags">
15-
<span
16-
v-for="option in visibleValue"
17-
track-by="$index"
18-
onmousedown="event.preventDefault()"
19-
class="multiselect__tag">
20-
<span v-text="getOptionLabel(option)"></span>
21-
<i
22-
aria-hidden="true"
23-
tabindex="1"
24-
@keydown.enter.prevent="removeElement(option)"
25-
@mousedown.prevent="removeElement(option)"
26-
class="multiselect__tag-icon">
27-
</i>
14+
<div v-el:tags class="multiselect__tags">
15+
<span v-if="multiple">
16+
<span
17+
v-for="option in visibleValue"
18+
track-by="$index"
19+
onmousedown="event.preventDefault()"
20+
class="multiselect__tag">
21+
<span v-text="getOptionLabel(option)"></span>
22+
<i
23+
aria-hidden="true"
24+
tabindex="1"
25+
@keydown.enter.prevent="removeElement(option)"
26+
@mousedown.prevent="removeElement(option)"
27+
class="multiselect__tag-icon">
28+
</i>
29+
</span>
2830
</span>
2931
<template v-if="value && value.length > limit">
3032
<strong v-text="limitText(value.length - limit)"></strong>

0 commit comments

Comments
 (0)