mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 10:13:32 -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:
		| @@ -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, | ||||||
|     }; |     }; | ||||||
|   }, |   }, | ||||||
| }); | }); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user