From 606c0adf29743035a01e761e6d97cb1f07449ebf Mon Sep 17 00:00:00 2001 From: J Guthrie Date: Sun, 15 Apr 2018 18:05:25 +0100 Subject: [PATCH] Remove error class when right-click-selecting destination --- app/assets/javascripts/index/directions.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/index/directions.js b/app/assets/javascripts/index/directions.js index 2b3319f8f..8a80328cc 100644 --- a/app/assets/javascripts/index/directions.js +++ b/app/assets/javascripts/index/directions.js @@ -69,6 +69,7 @@ OSM.Directions = function (map) { endpoint.setValue = function(value, latlng) { endpoint.value = value; delete endpoint.latlng; + input.removeClass("error"); input.val(value); if (latlng) { -- 2.43.2