angular-ui/ui-grid

uiGridValidateService clearError bug

Open

#5,201 建立於 2016年3月9日

在 GitHub 查看
 (1 留言) (1 反應) (1 負責人)JavaScript (5,395 star) (2,496 fork)batch import
good first issue

描述

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

貢獻者指南