File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
app/code/Magento/Ui/view/base/web/js Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -126,15 +126,13 @@ define([
126
126
if ( ! shiftedValue . isValid ( ) ) {
127
127
shiftedValue = moment ( value , this . inputDateFormat ) ;
128
128
}
129
-
130
129
shiftedValue = shiftedValue . format ( this . pickerDateTimeFormat ) ;
131
- if ( shiftedValue !== this . shiftedValue ( ) ) {
132
- this . shiftedValue ( shiftedValue ) ;
133
- }
134
130
} else {
135
- if ( this . shiftedValue ( ) ) {
136
- this . shiftedValue ( '' ) ;
137
- }
131
+ shiftedValue = '' ;
132
+ }
133
+
134
+ if ( shiftedValue !== this . shiftedValue ( ) ) {
135
+ this . shiftedValue ( shiftedValue ) ;
138
136
}
139
137
} ,
140
138
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ define([
58
58
* @param {HTMLElement } element - Element, that binding is applied to
59
59
* @param {Function } valueAccessor - Function that returns value, passed to binding
60
60
*/
61
- update : function ( element , valueAccessor ) {
61
+ update : function ( element , valueAccessor ) {
62
62
var config = valueAccessor ( ) ,
63
63
observable ,
64
64
options = defaults ,
You can’t perform that action at this time.
0 commit comments