Skip to content

Commit bf024c1

Browse files
committed
Fix for issue #18630
1 parent 8a7f23e commit bf024c1

File tree

1 file changed

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

1 file changed

+15
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@ 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+
this.value.equalityComparer = function(a, b) {
32+
return (!a && !b) || (a == b);
33+
};
34+
35+
return this;
36+
},
37+
2338
/**
2439
* @param {String} value
2540
*/

0 commit comments

Comments
 (0)