Skip to content
This repository was archived by the owner on Mar 2, 2018. It is now read-only.

fixes modal window closing bug#239

Closed
kennyadsl wants to merge 1 commit intothoughtbot:masterfrom
kennyadsl:fix-modal
Closed

fixes modal window closing bug#239
kennyadsl wants to merge 1 commit intothoughtbot:masterfrom
kennyadsl:fix-modal

Conversation

@kennyadsl
Copy link
Copy Markdown
Contributor

Hi, #236 and #221 together are causing a bug (currently also on refills website 💀 ). When the modal is closed by clicking outside the modal inner the "window-open" class is not removed correctly from body. I changed the "click" binding event into "change" for the "modal-state" input. This way it will correctly close the background window, even if the modal is closed programmatically.

@teoljungberg
Copy link
Copy Markdown
Contributor

Thank you @kennyadsl
Merged as 5d470b2, and updated on the website

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants