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

Can't overwrite individual modal with its own options, causes blocking overlay #3456

Closed
lisatassone opened this issue Aug 4, 2016 · 1 comment

Comments

@lisatassone
Copy link

If you initialise all modals at DOM ready with something like this:

$('.modal-trigger').leanModal();

and use ".modal-trigger" for your modal links:

<a class="modal-trigger" href="#hostname" id="UrlText">.something.com</a> </div>

If you then want to specify a particular complete function for a specific modal:

$("#hostname").leanModal({ complete: function(){ alert("hi"); } })
Once you click on the link, the modal will come up fine. Click into the modal, another overlay appears and effectively blocks the whole UI.

Codepen: [http://codepen.io/lisatassone/pen/RRZNWA]

This behaviour makes the modal functionality inflexible. You effectively have to initiate every modal with different options individually. Can one set these functions after the fact?

@fega
Copy link

fega commented Apr 5, 2017

It looks solved in the current version
http://codepen.io/fega/pen/GWLmKE

@fega fega closed this as completed Apr 5, 2017
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

No branches or pull requests

2 participants