FluentNumberField and DataAnnotationsValidator does not clear error when integer length exceeded #1966
Replies: 1 comment
-
Duplicate of #1345 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using a FluentNumberField and DataAnnotationsValidator, correcting a value does not clear the standard error message when the underlying data type length is exceeded if the model data type is integer or short.
This can be recreated directly on https://www.fluentui-blazor.net/Forms in the Maximum Accommodation field by entering a number 9999999999. This will generate two validation messages, 'Accommodation invalid (1-100000)' and 'The MaximumAccommodation field must be a number.'. Changing the input value to a valid integer value, say 1, will clear the first message but the 'field must be a number' message will not clear without refreshing the page.
This behaviour does not happen when using InputNumber with DataAnnotationsValidation.
versions EF Core 8.0.4 / FluentUI 4.7.1
Thanks
Beta Was this translation helpful? Give feedback.
All reactions