bug fixed datepicker

This commit is contained in:
Dani Herrero 2017-07-12 14:57:40 +02:00
parent f2c0dd3ab7
commit cd2560c8c6
1 changed files with 3 additions and 2 deletions

View File

@ -46,7 +46,6 @@ class DatePicker extends Component {
}
set modelView(value) {
this._modelView = value;
this.input.value = value;
this._setModel(value);
this.$timeout(
() => {
@ -132,7 +131,9 @@ class DatePicker extends Component {
model = `${dateStr} ${hourStr}`.trim();
}
return model;
if (this.model !== model) {
this.model = model;
}
}
$onInit() {