Skip to content

Commit

Permalink
Fix for issue #18630
Browse files Browse the repository at this point in the history
  • Loading branch information
dverkade committed Oct 15, 2018
1 parent 8a7f23e commit bf024c1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/code/Magento/Ui/view/base/web/js/form/element/post-code.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@ define([
}
},

/**
* Initializes observable properties of instance
*
* @returns {Abstract} Chainable.
*/
initObservable: function () {
this._super();

this.value.equalityComparer = function(a, b) {
return (!a && !b) || (a == b);
};

return this;
},

/**
* @param {String} value
*/
Expand Down

0 comments on commit bf024c1

Please sign in to comment.