Skip to content

Commit 6e9ad78

Browse files
Fixed The ui-component field validation error not opening accordion tab that owns the field (field does not get focused)
1 parent a06ae36 commit 6e9ad78

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

app/code/Magento/Ui/view/base/web/js/form/components/fieldset.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ define([
162162
}
163163

164164
this.error(hasErrors || message);
165+
166+
if (hasErrors || message) {
167+
this.open();
168+
}
165169
},
166170

167171
/**

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ define([
408408
isValid = this.disabled() || !this.visible() || result.passed;
409409

410410
this.error(message);
411+
this.error.valueHasMutated();
411412
this.bubble('error', message);
412413

413414
//TODO: Implement proper result propagation for form

0 commit comments

Comments
 (0)