Skip to content

Commit 0ed2711

Browse files
committed
MC-17922: Date in filter area doesn't match with Active filters bar
1 parent edf5f79 commit 0ed2711

File tree

1 file changed

+6
-2
lines changed
  • app/code/Magento/Ui/view/base/web/js/lib/knockout/bindings

1 file changed

+6
-2
lines changed

app/code/Magento/Ui/view/base/web/js/lib/knockout/bindings/datepicker.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ define([
3535
init: function (el, valueAccessor) {
3636
var config = valueAccessor(),
3737
observable,
38-
options = defaults;
38+
options = {};
39+
40+
_.extend(options, defaults);
3941

4042
if (typeof config === 'object') {
4143
observable = config.storage;
@@ -61,9 +63,11 @@ define([
6163
update: function (element, valueAccessor) {
6264
var config = valueAccessor(),
6365
observable,
64-
options = defaults,
66+
options = {},
6567
newVal;
6668

69+
_.extend(options, defaults);
70+
6771
if (typeof config === 'object') {
6872
observable = config.storage;
6973
_.extend(options, config.options);

0 commit comments

Comments
 (0)