Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateInput no reaction to null #221

Closed
LucaCris opened this issue Jun 6, 2023 · 1 comment · Fixed by #224
Closed

DateInput no reaction to null #221

LucaCris opened this issue Jun 6, 2023 · 1 comment · Fixed by #224
Assignees
Labels
area-date-input bug Something isn't working
Milestone

Comments

@LucaCris
Copy link

LucaCris commented Jun 6, 2023

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.

@gvreddy04 gvreddy04 self-assigned this Jun 6, 2023
@gvreddy04 gvreddy04 added investigate area-date-input bug Something isn't working and removed investigate labels Jun 6, 2023
@gvreddy04 gvreddy04 added this to the 1.8.2 milestone Jun 6, 2023
@gvreddy04
Copy link
Contributor

@LucaCris Thank you for reporting this. Will fix this.

gvreddy04 added a commit that referenced this issue Jun 6, 2023
@gvreddy04 gvreddy04 linked a pull request Jun 6, 2023 that will close this issue
gvreddy04 added a commit that referenced this issue Jun 10, 2023
gvreddy04 added a commit that referenced this issue Jun 10, 2023
* DateInput no reaction to null #221
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-date-input bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants