bug fixed datepicker
This commit is contained in:
parent
f2c0dd3ab7
commit
cd2560c8c6
|
@ -46,7 +46,6 @@ class DatePicker extends Component {
|
||||||
}
|
}
|
||||||
set modelView(value) {
|
set modelView(value) {
|
||||||
this._modelView = value;
|
this._modelView = value;
|
||||||
this.input.value = value;
|
|
||||||
this._setModel(value);
|
this._setModel(value);
|
||||||
this.$timeout(
|
this.$timeout(
|
||||||
() => {
|
() => {
|
||||||
|
@ -132,7 +131,9 @@ class DatePicker extends Component {
|
||||||
model = `${dateStr} ${hourStr}`.trim();
|
model = `${dateStr} ${hourStr}`.trim();
|
||||||
}
|
}
|
||||||
|
|
||||||
return model;
|
if (this.model !== model) {
|
||||||
|
this.model = model;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$onInit() {
|
$onInit() {
|
||||||
|
|
Loading…
Reference in New Issue