Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit 9bf80b5

Browse files
Fixed check field bug (#6635)
1 parent cf953ed commit 9bf80b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/javascript/app/common/form_validation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ const Validation = (() => {
101101
const event = events_map[field.type];
102102

103103
if (event) {
104-
field.$.unbind(event).on(event, e => {
105-
if (e.type === 'change' && e.target.type === 'text') return;
104+
field.$.unbind(event).on(event, () => {
106105
checkField(field);
107106
if (field.re_check_field) {
108107
checkField(forms[form_selector].fields.find(fld => (
@@ -371,6 +370,7 @@ const Validation = (() => {
371370
};
372371

373372
const showError = (field, localized_message) => {
373+
if (field.$error.html() === localized_message) return;
374374
clearError(field);
375375
Password.removeCheck(field.selector);
376376
field.$error.html(localized_message).setVisibility(1);

0 commit comments

Comments
 (0)