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.
1 parent a25a3a5 commit 86acabbCopy full SHA for 86acabb
app/code/Magento/Ui/view/base/web/js/lib/knockout/bindings/datepicker.js
@@ -54,13 +54,14 @@ define([
54
});
55
56
57
- // Binding context value can be cleared by another component (such
58
- // as filters), make sure datepicker element value is cleared, too.
59
- bindingContext.$data.value.subscribe(function (newVal) {
60
- if (!newVal) {
61
- $(el).val('');
62
- }
63
- }, this);
+ if(bindingContext.$data) {
+ bindingContext.$data.value.subscribe(function (newVal) {
+ if (!newVal) {
+ $(el).val('');
+ }
+ }, this);
64
+
65
66
},
67
0 commit comments