MudBlazor/MudBlazor

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

已关闭

#4,571 创建于 2022年5月9日

 (2 条评论) (0 个反应) (0 位负责人)C# (1,631 个派生)batch import
buggood first issue

仓库指标

星标
 (10,394 个星标)
PR 合并指标
 (平均合并 6天 6小时) (30 天内合并 108 个 PR)

描述

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

贡献者指南