We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ee69692 + b947c12 commit f1491b3Copy full SHA for f1491b3
app/code/Magento/Ui/view/base/web/js/form/element/date.js
@@ -125,17 +125,13 @@ define([
125
shiftedValue = moment(value, dateFormat);
126
}
127
128
- if (!shiftedValue.isValid()) {
129
- shiftedValue = moment(value, this.inputDateFormat);
130
- }
131
shiftedValue = shiftedValue.format(this.pickerDateTimeFormat);
132
- } else {
133
- shiftedValue = '';
134
135
136
- if (shiftedValue !== this.shiftedValue()) {
137
- this.shiftedValue(shiftedValue);
+ if (shiftedValue !== this.shiftedValue()) {
+ this.shiftedValue(shiftedValue);
+ }
138
+
139
},
140
141
/**
0 commit comments