Fixed #5718 - AutoComplete: chip slot only text, token passthrough has no context

pull/5872/head
tugcekucukoglu 2024-06-11 13:56:10 +03:00
parent 7b26bd0b0f
commit f9907fa4ce
1 changed files with 1 additions and 1 deletions

View File

@ -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)">