MudBlazor/MudBlazor

MudDatePicker not displaying error message and also not adding mud-input-error class to container if DataAnnotation failed.

Geschlossen

#4.571 geöffnet am 09.05.2022

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (1.631 Forks)batch import
buggood first issue

Repository-Metriken

Stars
 (10.394 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 6T 6h) (108 gemergte PRs in 30 T)

Beschreibung

Bug type

Component

Component name

MudDatePicker

What happened?

MudDatePicker component not displaying data annotation error neither adding mud-input-error class to containerthe

Expected behavior

Should display error if validation failed

Reproduction link

https://try.mudblazor.com/snippet/QucmkJYjcaRLKMXb

Reproduction steps

  1. Create a class with field DOB
  2. Add [Required] attribute on DOB field
  3. Use MudDatePicker inside EditForm and bind-Date with model field
  4. Now submit the form or click it and remove focus from it, it won't show any error ...

Relevant log output

No response

Version (bug)

6.0.9

Version (working)

No response

What browsers are you seeing the problem on?

Firefox, Chrome, Microsoft Edge, Safari

On what operating system are you experiencing the issue?

Windows

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct

Contributor Guide