How to disply checkbox in Vuetify autocomplete menu with multiple option and item slot? the reason i use item slot i want to add a tooltip on the item but the checkbox removed after this
<v-autocomplete
v-if="attribute.guiDataType === 'dropdown'"
:ref="`${attribute.attribute}_ct`"
:no-data-text="$t('filter.NoData')"
:label="attribute.label"
:items="attribute.concepts"
:value="selected[attribute.attribute]"
:return-object="false"
item-value="id"
item-color="secondary"
class="mx-4"
multiple
clearable
data-test="dropdown-filter"
:disabled="filtersLoading"
@change="selectItem($event, attribute.attribute)"
>
<template #item="{ item }">
<shortened-text-with-tooltip :text="item.label" />
</template>
<v-autocomplete>
When using the
itemslot, you have to add the checkbox yourself, passing the necessary data from slot props. Use the list-item components for proper formatting.Have a look at the snippet for an example: