From a67f047f5c60af71d0ac0fd263895e659c840e80 Mon Sep 17 00:00:00 2001 From: Liam Mitchell Date: Wed, 26 Mar 2014 12:16:13 +1300 Subject: [PATCH] Update the hide method to fix scroll Bootstrap.js binds on hidden on the bs.modal so you want to trigger that. $(document) .on('show.bs.modal', '.modal', function () { $(document.body).addClass('modal-open') }) .on('hidden.bs.modal', '.modal', function () { $(document.body).removeClass('modal-open') }) Otherwise the body tag will keep the modal-open tag and you cant scroll because it does overflow:none; --- src/js/bootstrap-datetimepicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/bootstrap-datetimepicker.js b/src/js/bootstrap-datetimepicker.js index c566f890e..beda11ebd 100644 --- a/src/js/bootstrap-datetimepicker.js +++ b/src/js/bootstrap-datetimepicker.js @@ -158,7 +158,7 @@ this.showMode(); this.set(); this.$element.trigger({ - type: 'hide', + type: 'hidden', date: this._date }); this._detachDatePickerGlobalEvents();