angular-ui/ui-grid

uiGridValidateService clearError bug

Open

#5 201 ouverte le 9 mars 2016

Voir sur GitHub
 (1 commentaire) (1 réaction) (1 assigné)JavaScript (2 496 forks)batch import
good first issue

Métriques du dépôt

Stars
 (5 395 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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];
}

Guide contributeur