Remove searchbox focus when hitting enter

dependabot/npm_and_yarn/vite-4.2.3
Anthony Catel 2023-03-22 14:48:59 +01:00
rodzic 03339f4f0d
commit 6b74e0aa9f
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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();
})
}