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

Closing topmost stacked modal causes body to lose "modal-open" class #77

Open
Braza opened this issue Feb 20, 2015 · 1 comment
Open

Comments

@Braza
Copy link

Braza commented Feb 20, 2015

This might be a trouble if the intermediate modal is high enough so that it needs scrolling. Body will scroll in this case.

@Braza
Copy link
Author

Braza commented Feb 20, 2015

suggesting fix that worked for me:

       $el.modal('hide');

       Modal.count--;
+      if (Modal.count >0){
+        $(document.body).addClass( "modal-open" );
+      }
+
     },

     /**
      * Stop the modal from closing.
      * Can be called from within a 'close' or 'ok' event listener.

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

1 participant