This commit is contained in:
philipp 2023-11-12 13:33:39 +01:00
parent 34775ace90
commit 77c888cf13

View File

@ -139,8 +139,11 @@ function selectBoatChange() {
inputElement.value = formattedDateTime; inputElement.value = formattedDateTime;
document.getElementById("distance_in_km").value = ""; const distinput = <HTMLInputElement>document.querySelector('#distance_in_km');
document.getElementById("destination").dispatchEvent(new Event('input')); distinput.value = "";
const destinput= <HTMLInputElement>document.querySelector('#destination');
destinput.dispatchEvent(new Event('input'));
},false); },false);
choiceObjects[boatSelect.id] = boatChoice; choiceObjects[boatSelect.id] = boatChoice;
@ -379,7 +382,6 @@ function initNewChoice(select: HTMLInputElement) {
},false); },false);
choiceObjects[select.id] = choice; choiceObjects[select.id] = choice;
document.getElementById("distance_in_km").value = "";
} }