kopia lustrzana https://github.com/paraboul/mapchecking
Remove searchbox focus when hitting enter
rodzic
03339f4f0d
commit
6b74e0aa9f
|
@ -75,6 +75,8 @@
|
|||
currentMap.setZoom(17);
|
||||
reset();
|
||||
} else {
|
||||
pacinput.value?.blur()
|
||||
|
||||
const sessionToken = new google.maps.places.AutocompleteSessionToken();
|
||||
const rest = await service.getPlacePredictions({
|
||||
input: place.name!,
|
||||
|
@ -92,6 +94,7 @@
|
|||
currentMap.setCenter(res.geometry.location);
|
||||
currentMap.setZoom(17);
|
||||
reset();
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue