Bootstrap modal makes scrollbar disappear after closing


Bootstrap modal makes scrollbar disappear after closing : Bootstrap modal makes scrollbar disappear when you are closing modal with jquery or javascript.


Bootstrap modal makes scrollbar disappear after closing

You Can Fix it by adding the following lines of code .

function closeMyModal(){
    $('.modal.in').modal('hide'); 
    $(".modal-backdrop").hide();
    $('body').removeClass('modal-open');
}

It will close the modal in proper way.


Advertisements

Add Comment

📖 Read More