Skip to content

DatePicker Validation #5109

Closed Answered by stsrki
RealityMasque asked this question in Q&A
Oct 25, 2023 · 4 comments · 6 replies
Discussion options

You must be logged in to vote

The problem seems to be with how the date calendar is created. The error message is expected to be under the input element, and in this case, the input is wrapped with a container div, making the CSS selectors that show the error broken.

As a workaround, you can disable this behavior by setting the StaticPicker.

<DatePicker TValue="DateTime?" Placeholder="YYYY-MM-DD" @bind-Date="@theDate" StaticPicker="false">

We will need to fix this behavior in one of the next releases.

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@David-Moreira
Comment options

Comment options

You must be logged in to vote
1 reply
@RealityMasque
Comment options

Comment options

You must be logged in to vote
4 replies
@RealityMasque
Comment options

@RealityMasque
Comment options

@David-Moreira
Comment options

@stsrki
Comment options

Answer selected by RealityMasque
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants