Fixed #1300 - Remove button in Chips template

pull/1317/head
Tuğçe Küçükoğlu 2021-05-31 15:57:00 +03:00
parent cbcc74b71d
commit 39d3375342
1 changed files with 1 additions and 1 deletions

View File

@ -4,8 +4,8 @@
<li v-for="(val,i) of modelValue" :key="`${i}_${val}`" class="p-chips-token">
<slot name="chip" :value="val">
<span class="p-chips-token-label">{{val}}</span>
<span class="p-chips-token-icon pi pi-times-circle" @click="removeItem($event, i)"></span>
</slot>
<span class="p-chips-token-icon pi pi-times-circle" @click="removeItem($event, i)"></span>
</li>
<li class="p-chips-input-token">
<input ref="input" type="text" v-bind="$attrs" @focus="onFocus" @blur="onBlur($event)" @input="onInput" @keydown="onKeyDown($event)" @paste="onPaste($event)"