Closed vursen closed 2 months ago
During our internal discussion, we discovered a way to keep error messages that are set with setErrorMessage
. They now take priority over i18n error messages, which allows developers to continue using the old familiar method, setting a single error message for all constraints. I've updated the PR and also removed the breaking change mark.
There are 1 files with format errors
To see a complete report of formatting issues, download the differences file
To fix the build, please run mvn formatter:format
in your branch and commit the changes.
Optionally you might add the following line in your .git/hooks/pre-commit
file:
mvn formatter:format
Here is the list of files with format issues in your PR:
vaadin-text-field-flow-parent/vaadin-text-field-flow/src/main/java/com/vaadin/flow/component/textfield/TextField.java
Failed conditions
12.3% Duplication on New Code (required ≤ 10%)
This ticket/PR has been released with Vaadin 24.5.0.alpha6 and is also targeting the upcoming stable 24.5.0 version.
Description
The PR introduces TimePickerI18n with methods for setting error messages and updates the TimePicker's validation logic to show these error messages when validation fails.
Part of #4618
Type of change