bootstrap-datetimepicker
bootstrap-datetimepicker copied to clipboard
Fix Uncaught TypeError: Cannot read property 'top' of undefined
Fixed issue https://github.com/tarruda/bootstrap-datetimepicker/issues/126
Was having the same issue! This fixed it!
Fixed the issue for me too +1
:+1:
I had the same problem and I'm using the js I built from @uehondor branch.
+1
:+1:
good to merge
+1 worked for me
:+1:
:+1: This fixed the issue for me.
Merge this, please.
Make sure value changes take effect when clicking away from the input box. Also, make sure to detach the mousedown event when we're done with it.
--- bootstrap-datetimepicker.js 2013-09-05 13:25:50.000000000 -0500
+++ bootstrap-datetimepicker.js 2015-01-09 13:54:46.000000000 -0600
@@ -153,6 +153,7 @@ hide: function() {
if (collapseData && collapseData.transitioning)
return;
}
+ this.change({target: this.$element});
this.widget.hide();
this.viewMode = this.startViewMode;
this.showMode();
@@ -1048,9 +1049,7 @@
_detachDatePickerGlobalEvents: function () {
$(window).off('resize.datetimepicker' + this.id);
- if (!this.isInput) {
- $(document).off('mousedown.datetimepicker' + this.id);
- }
+ $(document).off('mousedown.datetimepicker' + this.id);
},
_isInFixed: function() {
It works! thanks