-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(ValidationUtil): add methods accepting error message, deprecate old ones #6322
refactor(ValidationUtil): add methods accepting error message, deprecate old ones #6322
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Consider updating the usage of ValidationUtil.checkRequired
in other components as well, such as Checkbox
, ComboBox
, RadioButtonGroup
, Select
, etc.
...adin-flow-components-base/src/main/java/com/vaadin/flow/component/shared/ValidationUtil.java
Outdated
Show resolved
Hide resolved
b73fe2f
to
cc17130
Compare
Updated. |
|
Description
validateRequiredConstraint
,validateMinConstraint
andvalidateMaxConstraint
toValidationUtil
. They accept a string error message to return in theValidationResult
when the check fails.Part of #4618
Type of change