jdtcn / BlazorDateRangePicker

A Blazor component for choosing date ranges and dates
MIT License
186 stars 34 forks source link

Clearing the input should set start and end date to null #42

Closed Lesterdor closed 4 years ago

Lesterdor commented 4 years ago

Hey, I encountered strange behavior:

If you select a date range, the input will display start - end date (so far, so good). If you clear the input field by using backspace key etc. the start and end date property is still set to their values. So clearing the input field has no effect. In my opinion this behavior is not intuitive.

Furthermore if you use SingleDatePicker = "true" you have no buttons, so the user cannot reset his chosen date.

You can see what I mean on your documentation:

jdtcn commented 4 years ago

Hi, I've fixed this in 3.2.0 version. By the way, there is a way to add reset button to the input: https://github.com/jdtcn/BlazorDateRangePicker/issues/18

Lesterdor commented 4 years ago

Hey @jdtcn ,

thank you so much. I've tested the latest version and it works like a charm!

Thanks for your passion and support.