Reset the search input after selection on the RecipeOrganizerSelector (#3373)

* Reset the search input after selection on the RecipeOrganizerSelector

* remove unused import
This commit is contained in:
Kuchenpirat 2024-03-25 15:47:10 +01:00 committed by GitHub
parent 7505b5cf65
commit 4b0df3ace8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,6 +13,8 @@
$globals.icons.tags"
return-object
v-bind="inputAttrs"
:search-input.sync="searchInput"
@change="resetSearchInput"
>
<template #selection="data">
<v-chip
@ -148,6 +150,12 @@ export default defineComponent({
const dialog = ref(false);
const searchInput = ref("");
function resetSearchInput() {
searchInput.value = "";
}
return {
Organizer,
appendCreated,
@ -156,6 +164,8 @@ export default defineComponent({
label,
selected,
removeByIndex,
searchInput,
resetSearchInput,
};
},
});