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.
2 parents db0d304 + da1abef commit 69335b9Copy full SHA for 69335b9
app/code/Magento/Ui/view/base/web/js/form/element/post-code.js
@@ -20,6 +20,26 @@ define([
20
}
21
},
22
23
+ /**
24
+ * Initializes observable properties of instance
25
+ *
26
+ * @returns {Abstract} Chainable.
27
+ */
28
+ initObservable: function () {
29
+ this._super();
30
+
31
32
+ * equalityComparer function
33
34
+ * @returns boolean.
35
36
+ this.value.equalityComparer = function (oldValue, newValue) {
37
+ return !oldValue && !newValue || oldValue === newValue;
38
+ };
39
40
+ return this;
41
+ },
42
43
/**
44
* @param {String} value
45
*/
0 commit comments