Skip to content

Commit

Permalink
Fixed The ui-component field validation error not opening accordion t…
Browse files Browse the repository at this point in the history
…ab that owns the field (field does not get focused)
  • Loading branch information
ravi-chandra3197 authored and mageprince committed Jan 23, 2019
1 parent 8fdae10 commit 4a13ccf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ define([
}

this.error(hasErrors || message);

if (hasErrors || message) {
this.open();
}
},

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@ define([
isValid = this.disabled() || !this.visible() || result.passed;

this.error(message);
this.error.valueHasMutated();
this.bubble('error', message);

//TODO: Implement proper result propagation for form
Expand Down

0 comments on commit 4a13ccf

Please sign in to comment.