angular-ui/ui-grid

uiGridValidateService clearError bug

Open

#5,201 opened on Mar 9, 2016

View on GitHub
 (1 comment) (1 reaction) (1 assignee)JavaScript (2,496 forks)batch import
good first issue

Repository metrics

Stars
 (5,395 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

clearError function when clearing the last error is not setting the $$invalid to false (or deleting the $$invalid). clearError should have this code at the end

if(Object.getOwnPropertyNames(rowEntity['$$errors' + colDef.name]).length === 0 {
       delete rowEntity['$$invalid' + colDef.name];
}

Contributor guide