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
Modal blocking other elements in the page #3718
Comments
I think you'd be better off asking for help in the mailing list. thanks! |
where? p.s. i was not asking for help, i was suggesting a solution, bc modal's z-index can cause overlap issues |
@PixelBeets you can read this https://github.com/twitter/bootstrap/blob/master/README.md |
Found a fix for this for my issue. I need multiple modal windows, however the contents are dynamically created within the modal window and if i put in "Display:none" to the style then the contents started flipping out and not displaying properly I modified the boostrap.css .modal section to remove the z-index and re-added the z-index as a negative to .modal.fade and added the z-index to the modal.fade.in as a positive. example after fix: .modal { .modal.fade { .modal.fade.in { |
that sounds like a good one too, i will try, although my solution posted above has been working fine cross-browser/device so far ok... :) |
yeah your solution would have worked fine for me if my jhtmlarea didn't flip out with the display:none set in the style tag :( |
Thank you, this helped a lot!!! |
Thanks timothyswt your z-index change worked perfectly. I spent hours trying to understand the strange behavior, and only a few minutes ago realized that the links were behaving strangely under where the modal appears. Your answer provided a real relief. |
Out of the box, Bootstrap doesn't support showing multiple modals at once.
For such functionality, consider a third-party plugin such as https://github.com/jschr/bootstrap-modal/ |
Problem: If there are more than one Bootstrap Modal on one page - it can block other elements( a button or "x" close button) on the page or in modal's window making them not clickable, changing z-index does not help.
Solution: add to .modal { display:none; } - no need to modify js
Has anyone tried? or had the same issue?
The text was updated successfully, but these errors were encountered: