jquery - Materialize modal overlay the whole page (the modal popup was not brought to foreground) -
i cannot upload screenshot of web ui due confidential reason.
materialize modal supposed behave here, unfortunately, happened web whole page including modal part of "dark background". modal should overlaid on top of background (which darkened) , modal should active page. z-index modal 1003 (default).
in terms of ui, whatever click close modal buttons within modal (in fact can't click on buttons part of dark background). idea might happening here?
here code reference:
<button data-target="modal1" class="btn waves-effect waves-light modal-trigger" type="submit">save <i class="material-icons right">send</i> <!-- modal structure --> </button> <div id="modal1" class="modal"> <div class="modal-content"> <h4>modal header</h4> <p>a bunch of text</p> </div> <div class="modal-footer"> <a href="#!" class=" modal-action modal-close waves-effect waves-green btn-flat" name="action">submit</a> {{ form.submit }} </div> </div>
(i want modal form submission confirmation, detail ignored here.)
the problem have model structure inside div. placing model structure outside main div solve problem.
see pic hierarchy.
see question( had same problem):
materialize modal behind background (the modal popup not brought foreground)
Comments
Post a Comment