vaadin / flow-components

Java counterpart of Vaadin Web Components
81 stars 63 forks source link

feat!: support setting error messages with DatePickerI18n #6360

Open vursen opened 2 weeks ago

vursen commented 2 weeks ago

Description

The PR enhances DatePickerI18n with methods for setting error messages and updates the DatePicker's validation logic to show these error messages when validation fails.

[!WARNING] The PR is marked as breaking because it causes the component to start overriding any custom error messages that were set manually with the setErrorMessage method before validation. If you need to set error messages manually, use setManualValidation(true), which prevents the component from updating the invalid and errorMessage properties, allowing you to control them manually.

Part of #4618

Type of change

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud