MudBlazor/MudBlazor

MudDatePicker required validation does not trigger on blur or submit

開放

#4,475 建立於 2022年4月22日

 (2 則留言) (1 個反應) (1 位負責人)C# (1,631 個分叉)batch import
bughelp wanted

倉庫指標

星標
 (10,394 顆星)
PR 合併指標
 (平均合併 6天 6小時) (30 天內合併 108 個 PR)

描述

Bug type

Component

Component name

MudDatePicker

What happened?

The "Required" and "RequiredError" properties are not working and do not trigger once "onblur" nor on "submit". It triggers only after data is entered and then deleted.

Expected behavior

Error messages to appear on submit or onblur

Reproduction link

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

Reproduction steps

  1. Run the project
  2. Click on the button
  3. Entered date
  4. Delete date
  5. Click the button again

Relevant log output

n/a

Version (bug)

6.0.10-dev.2

Version (working)

n/a

What browsers are you seeing the problem on?

Firefox, Chrome, Microsoft Edge

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

貢獻者指南