Skip to content

Commit b4b673f

Browse files
committed
MAGETWO-51719: Cannot Clear the End Date
1 parent 6869129 commit b4b673f

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Ui/view/base/web/js/form/element

1 file changed

+2
-2
lines changed

app/code/Magento/Ui/view/base/web/js/form/element/date.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ define([
114114

115115
shiftedValue = shiftedValue.format(this.datetimeFormat);
116116
} else {
117-
shiftedValue = value;
117+
shiftedValue = '';
118118
}
119119
if (shiftedValue !== this.shiftedValue()) {
120120
this.shiftedValue(shiftedValue);
@@ -139,7 +139,7 @@ define([
139139
value = value.format(this.outputDateFormat);
140140
}
141141
} else {
142-
value = shiftedValue;
142+
value = '';
143143
}
144144
if (value !== this.value()) {
145145
this.value(value);

0 commit comments

Comments
 (0)