File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ export default function AddressInput(props: AddressInputProps) {
127127 if ( item instanceof POIQueryItem ) {
128128 handlePoiSearch ( poiSearch , item . result , props . map )
129129 props . onAddressSelected ( item . result . text ( item . result . poi ) , undefined )
130- } else if ( highlightedResult < 0 ) {
130+ } else if ( highlightedResult < 0 && ! props . point . isInitialized ) {
131131 // by default use the first result, otherwise the highlighted one
132132 getApi ( )
133133 . geocode ( text , 'nominatim' )
@@ -144,6 +144,7 @@ export default function AddressInput(props: AddressInputProps) {
144144 props . onAddressSelected ( item . toText ( ) , item . point )
145145 }
146146 }
147+ // do not disturb 'tab' cycle
147148 if ( event . key == 'Enter' ) searchInput . current ! . blur ( )
148149 break
149150 }
You can’t perform that action at this time.
0 commit comments