I have indentified this problem as happening due to the popup getting enclosed in another div with position:fixed
that I cannot avoid due to a fixed sidebar feature I am using that encloses all the content in the body and encloses it in a separate div.
To offset this issue I am thinking of changing the position of the modal on the fly using the following code -
$('.modal').on('show.bs.modal', function (e) {
e.preventDefault();
$(this).appendTo("body").modal('show');
});
Doing this just gives me a <error> jquery.js:1
in the console. This fix used to work perfectly in bootstrap 2 .
Edit - tried this next
$('.modal').on('show.bs.modal', function (e) {
e.preventDefault();
console.info(e);
$(e.target).appendTo('body').modal('show');
});
But this obviously messes it up due to it getting stuck in an infinite loop. Guess it will get fine once I find an efficient way to detect multiple show events on the same modal at a time.