From 205fcd7961fffb7a66a06916036bacc40f6ef662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arda=20Sentu=CC=88rk?= Date: Thu, 29 Jun 2023 15:08:34 +0200 Subject: [PATCH] fix: autocomplete list not closing problem - updated `height` in `flatListProps` to `undefined` if city is selected to fix a bug where the `AutoComplete` list would remain open after a city search because `height` had not changed SVA-833 --- src/screens/WasteCollectionScreen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screens/WasteCollectionScreen.js b/src/screens/WasteCollectionScreen.js index af804d78c..6ef7b4e6f 100644 --- a/src/screens/WasteCollectionScreen.js +++ b/src/screens/WasteCollectionScreen.js @@ -347,7 +347,7 @@ export const WasteCollectionScreen = ({ navigation }) => { data={filteredCities} disableFullscreenUI flatListProps={{ - height: dimensions.height - normalize(170), + height: inputValueCitySelected ? undefined : dimensions.height - normalize(170), keyboardShouldPersistTaps: 'handled', renderItem: inputValueCitySelected ? null : renderSuggestionCities }}