diff --git a/src/js/bootstrap-datetimepicker.js b/src/js/bootstrap-datetimepicker.js index c566f890e..26fb448cd 100644 --- a/src/js/bootstrap-datetimepicker.js +++ b/src/js/bootstrap-datetimepicker.js @@ -166,6 +166,8 @@ set: function() { var formatted = ''; + if(!this.$element.find('input').attr('readonly')) + { if (!this._unset) formatted = this.formatDate(this._date); if (!this.isInput) { if (this.component){ @@ -178,6 +180,7 @@ this.$element.val(formatted); this._resetMaskPos(this.$element); } + } }, setValue: function(newDate) {