[Blazor] Provide a way to customize the modelbinding errors.
Open
area-blazor
enhancement
feature-localization
feature-model-binding
Pillar: Complete Blazor Web
Priority:1
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 276
Description
Assuming we decide this, since they can end up in the UI. We need a mechanism to enable replacing the errors that occur during the binding process from form data.
These errors might surface on the UI when for example there is an invalid value that is being sent. That can be the case for example if the app is expecting a number and receives some text and so on.
To a degree this is less of a problem given the form controls in HTML5 help mitigate the presence of invalid values (which our components rely on). But there can be cases where this can still happen, with third party controls or some other types of values.
Contributor guide
Assessment
This issue has not been assessed yet.