Skip to content

Commit

Permalink
fix(directions): submit button disabled if from or to My Position
Browse files Browse the repository at this point in the history
  • Loading branch information
azarz committed Dec 6, 2024
1 parent fd3b68b commit 26852e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/directions/directions.js
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,10 @@ class Directions {
padding: padding,
});
self.dom.buttonCompute.classList.remove("disabled");
} else if (self.previewPoints.length === 1) {
if (self.dom.inputArrival.value == "Ma position" || self.dom.inputDeparture.value == "Ma position") {
self.dom.buttonCompute.classList.remove("disabled");
}
}

// on supprime les écouteurs
Expand Down

0 comments on commit 26852e8

Please sign in to comment.