Skip to content

Commit

Permalink
Fixed #228
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Jan 31, 2024
1 parent 623d5e6 commit b2cb40d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions grails-app/assets/javascripts/feature.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b2cb40d

Please sign in to comment.