修改BUG:checkGroup检查方法,多次点击后导致is-valid/is-invalid样式同时存在
This commit is contained in:
parent
ec7ed50e18
commit
d23e3aab92
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue