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"
|
$globals.icons.tags"
|
||||||
return-object
|
return-object
|
||||||
v-bind="inputAttrs"
|
v-bind="inputAttrs"
|
||||||
|
:search-input.sync="searchInput"
|
||||||
|
@change="resetSearchInput"
|
||||||
>
|
>
|
||||||
<template #selection="data">
|
<template #selection="data">
|
||||||
<v-chip
|
<v-chip
|
||||||
@ -148,6 +150,12 @@ export default defineComponent({
|
|||||||
|
|
||||||
const dialog = ref(false);
|
const dialog = ref(false);
|
||||||
|
|
||||||
|
const searchInput = ref("");
|
||||||
|
|
||||||
|
function resetSearchInput() {
|
||||||
|
searchInput.value = "";
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
Organizer,
|
Organizer,
|
||||||
appendCreated,
|
appendCreated,
|
||||||
@ -156,6 +164,8 @@ export default defineComponent({
|
|||||||
label,
|
label,
|
||||||
selected,
|
selected,
|
||||||
removeByIndex,
|
removeByIndex,
|
||||||
|
searchInput,
|
||||||
|
resetSearchInput,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user