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