Skip to content

Commit

Permalink
Update UI when errors within array change.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Jul 11, 2017
1 parent 7db6da3 commit ffc879f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ module.directive('stepIndexPattern', function () {
// If the index pattern name is invalid, we should reflect that state in the list.
scope.stepIndexPattern.updateList();
});
scope.$watch('stepIndexPattern.indexPatternNameForm.$error', () => {
scope.$watchCollection('stepIndexPattern.indexPatternNameForm.$error', () => {
// If we immediately replace the input with an invalid string, then only the form state
// changes, but not the `indexPatternName` value, so we need to watch both.
scope.stepIndexPattern.updateList();
Expand Down

0 comments on commit ffc879f

Please sign in to comment.