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 c307d25 commit 12deeebCopy full SHA for 12deeeb
app/code/Magento/Ui/view/base/web/js/form/element/post-code.js
@@ -26,14 +26,17 @@ define([
26
update: function (value) {
27
var country = registry.get(this.parentName + '.' + 'country_id'),
28
options = country.indexedOptions,
29
- option;
+ option = null;
30
31
if (!value) {
32
return;
33
}
34
35
option = options[value];
36
-
+ if (!option) {
37
+ return;
38
+ }
39
+
40
if (option['is_zipcode_optional']) {
41
this.error(false);
42
this.validation = _.omit(this.validation, 'required-entry');
0 commit comments