Wednesday, 26 April 2017

Fix for Scroll and Focus Issue with Multiple Bootstrap Modals



$(document).on('hidden.bs.modal', '.modal', function () { if($('.modal:visible').length){ $('body').addClass("modal-open"); } else { $('body').removeClass("modal-open"); } });

No comments:

Post a Comment