Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix close button failure when closeMarkup contains nested nodes. #973

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tonesfrommars
Copy link

@tonesfrommars tonesfrommars commented Apr 4, 2017

Modify _checkIfClose to allow additional nodes inside .mfp-close when using custom closeMarkup.

The problem is described in issues #948, #609 and possibly #535. While there are workarounds specific to each users' choice of custom closeMarkup, this pull request prevents breakage when inserting an image tag, icon, span, or svg inside the default button markup. I found it surprising that close behavior broke after inserting some child nodes into the default button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant