Skip to content

Commit

Permalink
fix autocomplete list not closing problem
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
ardasnturk committed Jun 29, 2023
1 parent 88f1355 commit 94d7385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/screens/WasteCollectionScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}}
Expand Down

0 comments on commit 94d7385

Please sign in to comment.