修改BUG:checkGroup检查方法,多次点击后导致is-valid/is-invalid样式同时存在

This commit is contained in:
Argo-Surface 2018-12-03 11:41:52 +08:00
parent ec7ed50e18
commit d23e3aab92
1 changed files with 2 additions and 1 deletions

View File

@ -189,7 +189,8 @@
var $this = $(this);
return $this.hasClass(rule) || $this.attr(rule);
});
if (result) $checkers.removeClass(this.options.errorClass).tooltip('dispose');
$checkers.removeClass(this.options.errorClass).removeClass(this.options.validClass);
if (result) $checkers.tooltip('dispose');
else $checkers.addClass(this.options.errorClass).tooltip();
}
}