From b2cb40d9498c487c8ac5761d5da3eb247fbdf34b Mon Sep 17 00:00:00 2001 From: chrisala Date: Thu, 1 Feb 2024 08:18:40 +1100 Subject: [PATCH] Fixed #228 --- grails-app/assets/javascripts/feature.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grails-app/assets/javascripts/feature.js b/grails-app/assets/javascripts/feature.js index aae64e3d..356ef917 100644 --- a/grails-app/assets/javascripts/feature.js +++ b/grails-app/assets/javascripts/feature.js @@ -614,6 +614,8 @@ ecodata.forms.maps.showMapInModal = function(options) { }) .one('hidden.bs.modal', function (e) { + $ok.unbind('click', okPressed); // This is done because otherwise when cancel is pressed the listener isn't removed. + // This check is necessary because the accordion also fires these events which bubble to the modal. if (e.target == this) { self.featureMapInstance.clearDrawnItems();