Jake Vanderwerf
5 days ago 0dfe1d8afafc59c4a5559c498342668d5a58d6ef
assets/js/concise/Modal.js
@@ -133,9 +133,10 @@
         return;
      }
      if (this.elements.save && window.targetCheck(e, this.elements.save)) {
         this.handleClose();
      } else if (this.elements.close && window.targetCheck(e, this.elements.close)) {
      // if (this.elements.save && window.targetCheck(e, this.elements.save)) {
      //    this.handleClose();
      // } else
         if (this.elements.close && window.targetCheck(e, this.elements.close)) {
         // Additional check: only close if we're the top modal
         if (ModalController.modalStack[ModalController.modalStack.length - 1] === this) {
            this.handleClose();