Skip to content

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