Skip to content

Commit 0bcd339

Browse files
committed
feat: dismiss keyboard on place selection
1 parent 1926920 commit 0bcd339

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/GooglePlacesTextInput.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ const GooglePlacesTextInput = forwardRef(
142142
const place = suggestion.placePrediction;
143143
setInputText(place.structuredFormat.mainText.text);
144144
setShowSuggestions(false);
145+
Keyboard.dismiss();
145146
onPlaceSelect(place); // Notify parent with selected place
146147
};
147148

0 commit comments

Comments
 (0)