javascript - Bootstrap modal stops scrolling -
this going weird question...
i having problem on site developing client. have couple of select2 inputs in bootstrap 3 modal window. on smaller screens modal window scrolls fine vertically, until focus on 1 of 2 select inputs. after that, can't scroll means. either keyboard, or scroll wheel or dragging scrollbar.
i tried make fiddle reproduce error, because can't show site i'm working on, on fiddle, scrolling works no matter do.
https://jsfiddle.net/maidomax/ckuoe762/4/
i tried fiddling also:
$('select').select2({ dropdownparent: $("#mymodal") });
but makes no difference. so... have ask question way.
what possibly prevent modal scrolling? scrollbar visible, , not disabled, stuck, , can't move way try. there property on div or other part of document set type of behavior?
try add css:
.modal-open .modal { overflow-x: hidden; overflow-y: auto; }
i have had problem before , worked me. if not fix problem, can make gif of it?
Comments
Post a Comment