File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
app/code/Magento/Ui/view/base/web/js/form/element Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -113,10 +113,11 @@ define([
113
113
}
114
114
115
115
shiftedValue = shiftedValue . format ( this . datetimeFormat ) ;
116
-
117
- if ( shiftedValue !== this . shiftedValue ( ) ) {
118
- this . shiftedValue ( shiftedValue ) ;
119
- }
116
+ } else {
117
+ shiftedValue = '' ;
118
+ }
119
+ if ( shiftedValue !== this . shiftedValue ( ) ) {
120
+ this . shiftedValue ( shiftedValue ) ;
120
121
}
121
122
} ,
122
123
@@ -137,10 +138,11 @@ define([
137
138
value = moment ( shiftedValue , this . datetimeFormat ) ;
138
139
value = value . format ( this . outputDateFormat ) ;
139
140
}
140
-
141
- if ( value !== this . value ( ) ) {
142
- this . value ( value ) ;
143
- }
141
+ } else {
142
+ value = '' ;
143
+ }
144
+ if ( value !== this . value ( ) ) {
145
+ this . value ( value ) ;
144
146
}
145
147
} ,
146
148
You can’t perform that action at this time.
0 commit comments