From: Tom Hughes Date: Thu, 27 Feb 2025 22:03:21 +0000 (+0000) Subject: Merge remote-tracking branch 'upstream/pull/5729' X-Git-Tag: live~2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/5a397711acf2126604a34c7e586300506983f9d9?hp=648b8ba1f83e9923bb43a9175ea548405c9a403d Merge remote-tracking branch 'upstream/pull/5729' --- diff --git a/app/assets/javascripts/index/directions.js b/app/assets/javascripts/index/directions.js index ee8d3b8c5..c6f83a575 100644 --- a/app/assets/javascripts/index/directions.js +++ b/app/assets/javascripts/index/directions.js @@ -248,7 +248,7 @@ OSM.Directions = function (map) { }); select.on("change", function (e) { - setEngine(e.target.selectedOptions[0].value + "_" + chosenEngine.mode); + setEngine(e.target.value + "_" + chosenEngine.mode); Cookies.set("_osm_directions_engine", chosenEngine.id, { secure: true, expires: expiry, path: "/", samesite: "lax" }); getRoute(true, true); }); diff --git a/app/views/layouts/_search.html.erb b/app/views/layouts/_search.html.erb index b4e6bf123..706d27a99 100644 --- a/app/views/layouts/_search.html.erb +++ b/app/views/layouts/_search.html.erb @@ -70,19 +70,19 @@