Skip to content

Commit c7629bd

Browse files
committed
clear input -> type -> select same entry again should replace partial string in input too
1 parent 99bf018 commit c7629bd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/sidebar/search/AddressInput.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ export default function AddressInput(props: AddressInputProps) {
265265
highlightedItem={autocompleteItems[highlightedResult]}
266266
onSelect={item => {
267267
if (item instanceof GeocodingItem) {
268+
setText(item.toText())
268269
props.onAddressSelected(item.toText(), item.point)
269270
} else if (item instanceof POIQueryItem) {
270271
handlePoiSearch(poiSearch, item.result, props.map)

0 commit comments

Comments
 (0)