Fixed duplicate keys issue on Chips
parent
0ef6de80a3
commit
3961555439
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div :class="['p-chips p-component', {'p-inputwrapper-filled': value, 'p-inputwrapper-focus': focused}]">
|
||||
<ul :class="['p-inputtext', {'p-disabled': $attrs.disabled, 'p-focus': focused}]" @click="onWrapperClick()">
|
||||
<li v-for="(val,i) of value" :key="val" class="p-chips-token p-highlight">
|
||||
<li v-for="(val,i) of value" :key="`${i}_${val}`" class="p-chips-token p-highlight">
|
||||
<slot name="chip" :value="val">
|
||||
<span class="p-chips-token-icon pi pi-fw pi-times" @click="removeItem($event, i)"></span>
|
||||
<span class="p-chips-token-label">{{val}}</span>
|
||||
|
|
Loading…
Reference in New Issue