javascript - Magnific Popup and Bootstrap 3 Modal Call Stack Exceeded -
i'm having interesting issue when combining boostrap 3 modal magnific popup. have bootstrap modal contains list of videos, , each video has view link opens magnific popup iframe popup.
everything worked fine until played magnific popup's z-index in order appear on top of bootstrap modal. problem is, if try , close magnific popup (or interact @ all) stackoverflow error occurs (maximum call stack exceeded).
note: works fine if leave z-index of magnific popup alone.
simplified example: http://codepen.io/craigh/pen/gowwok/
note: codepen suppresses errors, issue not obvious. on site, occurs locking browser up.
i think has how clicking outside of bootstrap modal closes modal, changed modal backdrop static (forces user click x or close button) no change. ideas?
someone posted answer question in github issue same problem. commenting out line of code seems messing trick , haven't found side effects of now.
taken github user randomarray's response
line 375 seems problem. commented out , maximum call stack size exceeded error went away.
_document.on('focusin' + event_ns, mfp._onfocusin);
Comments
Post a Comment