diff --git a/kitchenowl/lib/pages/household_page/shoppinglist.dart b/kitchenowl/lib/pages/household_page/shoppinglist.dart index 4a3e6f47..58debf2a 100644 --- a/kitchenowl/lib/pages/household_page/shoppinglist.dart +++ b/kitchenowl/lib/pages/household_page/shoppinglist.dart @@ -63,6 +63,8 @@ class _ShoppinglistPageState extends State { if (state.result.first is! ShoppinglistItem) { cubit.add(state.result.first); } + } else { + cubit.search(searchController.text); } }, ), diff --git a/kitchenowl/lib/pages/item_search_page.dart b/kitchenowl/lib/pages/item_search_page.dart index 6fb693d5..2e82b8c1 100644 --- a/kitchenowl/lib/pages/item_search_page.dart +++ b/kitchenowl/lib/pages/item_search_page.dart @@ -66,6 +66,10 @@ class _ItemSearchPageState extends State { alwaysExpanded: true, textInputAction: TextInputAction.done, onSubmitted: () { + if (cubit.state.query != searchController.text) { + cubit.search(searchController.text); + return; + } if (cubit.state.selectedItems .contains(cubit.state.searchResults.first)) return; if (!widget.multiple) {