Skip to content

Commit 69335b9

Browse files
authored
ENGCOM-3898: Fix for issue #18630 #18633
2 parents db0d304 + da1abef commit 69335b9

File tree

1 file changed

+20
-0
lines changed
  • app/code/Magento/Ui/view/base/web/js/form/element

1 file changed

+20
-0
lines changed

app/code/Magento/Ui/view/base/web/js/form/element/post-code.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,26 @@ define([
2020
}
2121
},
2222

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+
2343
/**
2444
* @param {String} value
2545
*/

0 commit comments

Comments
 (0)