diff --git a/app/views/partials/modal.js b/app/views/partials/modal.js index f9ae7c3..69ddb16 100644 --- a/app/views/partials/modal.js +++ b/app/views/partials/modal.js @@ -14,7 +14,7 @@ export const modal = (modalId, controller, contentHTML, options = {}) => { * onHide : Runs when the modal closes. */ - const isOpen = controller.openModal === modalId; + const isOpen = () => controller.openModal === modalId; return [ ( @@ -25,8 +25,8 @@ export const modal = (modalId, controller, contentHTML, options = {}) => { // Modals in Picnic CSS uses pure CSS with clever usage of invisible checkboxes and labels html`