mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-09 03:04:54 -04:00
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:
parent
7505b5cf65
commit
4b0df3ace8
@ -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,
|
||||
};
|
||||
},
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user