From aeac2cd960f81cf14b4cabd7eb3e0f139d1ef168 Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Thu, 19 Jul 2018 14:08:52 +0300 Subject: [PATCH] Remove clearing of sessionToken when the input is empty Note: this might be reversed, if there's some time limit for tokens) --- .../LocationAutocompleteInput/LocationAutocompleteInput.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/LocationAutocompleteInput/LocationAutocompleteInput.js b/src/components/LocationAutocompleteInput/LocationAutocompleteInput.js index 79e2292a..ba198de7 100644 --- a/src/components/LocationAutocompleteInput/LocationAutocompleteInput.js +++ b/src/components/LocationAutocompleteInput/LocationAutocompleteInput.js @@ -217,7 +217,6 @@ class LocationAutocompleteInput extends Component { this.setState({ highlightedIndex: -1 }); if (!newValue) { - this.autocompleteSessionToken = null; // No need to fetch predictions on empty input return; }