One issue I'm encountering involves a v-autocomplete field with a drop-down list of items. It allows for multiple selections.
<v-autocomplete
v-model="defendantCode"
label="Defendant Code"
:items="defendantCodeOptions"
:loading="defendantCodeIsLoading"
:filter="customFilter"
:clear-on-select="true"
clearable
multiple
dense>
</v-autocomplete>
The problem arises when a user begins typing to filter the list, then selects an item. The typed text remains in the field and does not get replaced by the selected item.
Is there a way to clear the text when an item is selected?
For example:
- User has a drop-down list for item selection.
https://i.sstatic.net/AJ3jr.png
- User types in an item to filter.
https://i.sstatic.net/e4yg2.png
- User selects an item, but the initial text remains in the field.