Skip to content

[Bug]: Validator dateTime #5690

@danik121

Description

@danik121

Blazorise Version

1.6

What Blazorise provider are you running on?

FluentUI2

Steps to reproduce

<Field>
   <FieldLabel RequiredIndicator>Date</FieldLabel>
   <FieldBody>
     <Validation Validator="@ValidationRule.IsDateSelected<DateTime?>">
       <DatePicker TValue="DateTime?" DisplayFormat="dd/MM/yyyy" @bind-Date="@Date">
       </DatePicker>
     </Validation>
   </FieldBody>
 </Field>

What is expected?

No errors

What is actually happening?

RZ9986 Component attributes do not support complex content (mixed C# and markup). Attribute: 'Validator', text: 'ValidationRule.IsDateSelected<DateTime?>'

What browsers do you see the problem on?

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

✔ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions