Skip to content

Commit e1c3b59

Browse files
committed
maint(pat-validation): Comment for clarity.
1 parent 3ce4e4a commit e1c3b59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pat/validation/validation.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,8 @@ class Pattern extends BasePattern {
374374
}
375375

376376
set_error_message(input) {
377-
this.remove_error(input);
377+
// First, remove the old error message.
378+
this.remove_error(input, false, true);
378379

379380
// Do not set a error message for a input group like radio buttons or
380381
// checkboxes where one has already been set.

0 commit comments

Comments
 (0)