bug fixed datepicker
This commit is contained in:
parent
f2c0dd3ab7
commit
cd2560c8c6
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue