fix: disable spacebar after submission
This commit is contained in:
parent
3ff96cc411
commit
d607a4c4b3
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@
|
||||||
|
|
||||||
map.on("click", (e) => setMarker(e.latlng));
|
map.on("click", (e) => setMarker(e.latlng));
|
||||||
map.on("keydown", (e) => {
|
map.on("keydown", (e) => {
|
||||||
if (latlng.lat !== 0 && latlng.lng !== 0 && e.originalEvent.key === " ") {
|
if (!results && latlng.lat !== 0 && latlng.lng !== 0 && e.originalEvent.key === " ") {
|
||||||
checkLocation();
|
checkLocation();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue