Fixed #5718 - AutoComplete: chip slot only text, token passthrough has no context
parent
7b26bd0b0f
commit
f9907fa4ce
|
@ -53,7 +53,7 @@
|
||||||
:aria-posinset="i + 1"
|
:aria-posinset="i + 1"
|
||||||
v-bind="ptm('token')"
|
v-bind="ptm('token')"
|
||||||
>
|
>
|
||||||
<slot name="chip" :value="option">
|
<slot name="chip" :value="option" v-bind="ptm('tokenLabel')">
|
||||||
<span :class="cx('tokenLabel')" v-bind="ptm('tokenLabel')">{{ getOptionLabel(option) }}</span>
|
<span :class="cx('tokenLabel')" v-bind="ptm('tokenLabel')">{{ getOptionLabel(option) }}</span>
|
||||||
</slot>
|
</slot>
|
||||||
<slot name="removetokenicon" :class="cx('removeTokenIcon')" :index="i" :onClick="(event) => removeOption(event, i)" :removeCallback="(event) => removeOption(event, i)">
|
<slot name="removetokenicon" :class="cx('removeTokenIcon')" :index="i" :onClick="(event) => removeOption(event, i)" :removeCallback="(event) => removeOption(event, i)">
|
||||||
|
|
Loading…
Reference in New Issue