@@ -665,7 +665,9 @@ export const GooglePlacesAutocomplete = forwardRef((props, ref) => {
665
665
const _onBlur = ( e ) => {
666
666
if ( e && isNewFocusInAutocompleteResultList ( e ) ) return ;
667
667
668
- setListViewDisplayed ( false ) ;
668
+ if ( ! props . keepResultsAfterBlur ) {
669
+ setListViewDisplayed ( false ) ;
670
+ }
669
671
inputRef ?. current ?. blur ( ) ;
670
672
} ;
671
673
@@ -846,6 +848,7 @@ GooglePlacesAutocomplete.propTypes = {
846
848
listEmptyComponent : PropTypes . func ,
847
849
listUnderlayColor : PropTypes . string ,
848
850
listViewDisplayed : PropTypes . oneOf ( [ 'auto' , PropTypes . bool ] ) ,
851
+ keepResultsAfterBlur : PropTypes . bool ,
849
852
minLength : PropTypes . number ,
850
853
nearbyPlacesAPI : PropTypes . string ,
851
854
numberOfLines : PropTypes . number ,
@@ -894,6 +897,7 @@ GooglePlacesAutocomplete.defaultProps = {
894
897
keyboardShouldPersistTaps : 'always' ,
895
898
listUnderlayColor : '#c8c7cc' ,
896
899
listViewDisplayed : 'auto' ,
900
+ keepResultsAfterBlur : false ,
897
901
minLength : 0 ,
898
902
nearbyPlacesAPI : 'GooglePlacesSearch' ,
899
903
numberOfLines : 1 ,
0 commit comments