Skip to content

DateInput no reaction to null #221

@LucaCris

Description

@LucaCris

Have:

<DateInput @bind-Value="FilterDate" />
DateTime? FilterDate;

Set any date from control GUI.

Then do (as response to a button event, for example):

FilterDate = null;

The date is not cleraed. However, if I set a valid date (ie: DateTime.Now) the value is correctly updated, so binding is ok.

Workaround:

use standard InputDate instead:

<InputDate @bind-Value="FilterDate" class="form-control" />

it works as expected.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions