vaadin / flow-components

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

feat!: support setting error messages with NumberFieldI18n #6346

Open vursen opened 3 weeks ago

vursen commented 3 weeks ago

Description

The PR introduces NumberFieldI18n with methods for setting error messages and updates the NumberField'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
1 New issue
0 Accepted issues

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

See analysis details on SonarCloud