From f3c1c6149dbfde9f9fa68d6eb79ceb17561f96c0 Mon Sep 17 00:00:00 2001 From: Dennis Konieczek Date: Wed, 4 May 2022 12:58:13 -0400 Subject: [PATCH] fix(autocompletecontroller): allow queries with spaces to be submitted --- .../snap-controller/src/Autocomplete/AutocompleteController.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/snap-controller/src/Autocomplete/AutocompleteController.ts b/packages/snap-controller/src/Autocomplete/AutocompleteController.ts index 63828c4cb..0572ec270 100644 --- a/packages/snap-controller/src/Autocomplete/AutocompleteController.ts +++ b/packages/snap-controller/src/Autocomplete/AutocompleteController.ts @@ -89,6 +89,7 @@ export class AutocompleteController extends AbstractController { // cancel search if no input or query doesn't match current urlState if (ac.response.autocomplete.query != ac.controller.urlManager.state.query) { + ac.controller.store.loading = false; return false; } });