]> git.openstreetmap.org Git - rails.git/commitdiff
Merge remote-tracking branch 'upstream/pull/5101'
authorTom Hughes <tom@compton.nu>
Wed, 21 Aug 2024 17:32:39 +0000 (18:32 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 21 Aug 2024 17:32:39 +0000 (18:32 +0100)
app/assets/javascripts/index/directions-endpoint.js

index 3ffb9b498723f06363cfe1f94c246e39ec864ca9..7fe4b4ea7f4803053f816d2f9d7986817e798aab 100644 (file)
@@ -27,6 +27,9 @@ OSM.DirectionsEndpoint = function Endpoint(map, input, iconUrl, dragCallback, ch
 
     if (endpoint.geocodeRequest) endpoint.geocodeRequest.abort();
     delete endpoint.geocodeRequest;
+    removeLatLng();
+    delete endpoint.value;
+    input.val("");
     map.removeLayer(endpoint.marker);
   };