I have a vuetify v-autocomplete in a dialog box and it keeps the last value selected displayed. If I open the dialog, select a name and close the dialog the next time I open it it still displays the last selected value.
<v-autocomplete default="" placeholder="Type to search" :items="members" :item-text="getFullName" item-value="MemberID" :loading="loadingMembers" @change="changeMember"></v-autocomplete>
Is there a way that I can set it to blank when the dialog closes? I could probably reload the entire list of items but that seems a waste of resources since it fills with 3000 names
Thanks
v-model="member_select"
, and after that inchangeMember()
this.member_select = ''
should do the trick – ljubadr