jquery - materialize css double modal -
when show 1 modal, , action inside modal displays modal, screen gets opacity, , that's annoying of course.
i see materialize creates element, @ end of dom:
<div class="lean-overlay" id="materialize-lean-overlay-1" style="z-index: 1002; display: block;opacity: 0.5;"></div> <div class="lean-overlay" id="materialize-lean-overlay-2" style="z-index: 1004; display: block;opacity: 0.5;"></div>
i should set opacity of last element 0.
but think solution won't work in cases (sometimes id="materialize-lean-overlay-xxx"
). can loop class="lean-overlay"
elements, , set opacity of last element 0, not sure if it's best solution.
what think? thanks!!
try remove oppacity of father modal , run
Comments
Post a Comment