diff --git a/frontend/main.ts b/frontend/main.ts index a351893..1978699 100644 --- a/frontend/main.ts +++ b/frontend/main.ts @@ -138,6 +138,12 @@ function selectBoatChange() { const formattedDateTime = `${now.getFullYear()}-${String(now.getMonth() + 1).padStart(2, '0')}-${String(now.getDate()).padStart(2, '0')}T${String(now.getHours()).padStart(2, '0')}:${String(now.getMinutes()).padStart(2, '0')}`; inputElement.value = formattedDateTime; + + const distinput = document.querySelector('#distance_in_km'); + distinput.value = ""; + + const destinput= document.querySelector('#destination'); + destinput.dispatchEvent(new Event('input')); },false); choiceObjects[boatSelect.id] = boatChoice;