mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00:00
FIX: pick date and time was not reseting state
This commit is contained in:
parent
c5745feac6
commit
5b3ecffbb2
@ -154,14 +154,17 @@ export default ComboBoxComponent.extend(DatetimeMixin, {
|
||||
},
|
||||
|
||||
mutateValue(value) {
|
||||
if (this.get("isCustom")) return;
|
||||
let input = null;
|
||||
const { time } = this._updateAt(value);
|
||||
if (this.get("isCustom")) {
|
||||
this.set("value", value);
|
||||
} else {
|
||||
let input = null;
|
||||
const { time } = this._updateAt(value);
|
||||
|
||||
if (time && !Ember.isEmpty(value)) {
|
||||
input = time.format(FORMAT);
|
||||
if (time && !Ember.isEmpty(value)) {
|
||||
input = time.format(FORMAT);
|
||||
}
|
||||
|
||||
this.setProperties({ input, value });
|
||||
}
|
||||
|
||||
this.setProperties({ input, value });
|
||||
},
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user