Skip to content

Commit

Permalink
Fix chrome not letting you select the date in the field
Browse files Browse the repository at this point in the history
  • Loading branch information
Fábio Santos committed May 22, 2015
1 parent b5af463 commit bab9ecc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/js/Ink/UI/DatePicker/1/lib.js
Expand Up @@ -1178,7 +1178,10 @@ Ink.createModule('Ink.UI.DatePicker', '1', ['Ink.UI.Common_1','Ink.Dom.Event_1',
this._day = dt._day;

if(!this._options.displayInSelect){
this._element.value = this._writeDateInFormat();
var formattedDate = this._writeDateInFormat();
if (formattedDate !== this._element.value) {
this._element.value = formattedDate;
}
} else {
this._options.dayField.value = this._day;
this._options.monthField.value = this._month + 1;
Expand Down

0 comments on commit bab9ecc

Please sign in to comment.