From 0f2da9529671eabf98ed5cdd86b6270fecb12982 Mon Sep 17 00:00:00 2001 From: RomanTsukanov Date: Tue, 15 Oct 2024 18:34:10 +0400 Subject: [PATCH] Update the note in the `checkErrorsMode` description (#8934) --- packages/survey-core/src/survey.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/survey-core/src/survey.ts b/packages/survey-core/src/survey.ts index abf9cfb48a..9be15f7c9b 100644 --- a/packages/survey-core/src/survey.ts +++ b/packages/survey-core/src/survey.ts @@ -1746,7 +1746,7 @@ export class SurveyModel extends SurveyElementCore * - `"onValueChanged"` - Triggers validation each time a question value is changed. * - `"onComplete"` - Triggers validation when a user clicks the Complete button. If previous pages contain errors, the survey switches to the page with the first error. * - * > The `"onValueChanged"` doesn't work with date input fields because of the way browsers process date values. In most browsers, the value is considered changed as soon as a user starts entering the date in a text input field. This means that a user may only enter the day without having the chance to enter the month and year before validation is triggered. For this reason, date input fields are validated before the survey is switched to the next page or completed. + * > In SurveyJS Form Library v1.12.5 and earlier, the `"onValueChanged"` mode doesn't work with date input fields because of the way browsers process date values. In most browsers, the value is considered changed as soon as a user starts entering the date in a text input field. This means that a user may only enter the day without having the chance to enter the month and year before validation is triggered. For this reason, date input fields are validated before the survey is switched to the next page or completed. Starting with v1.12.6, `"onValueChanged"` works for date input fields as well as for input fields of other types. * * Refer to the following help topic for more information: [Data Validation](https://surveyjs.io/form-library/documentation/data-validation). * @see validationEnabled