DatePicker: week count, date&time picker focus, quarter range & placeholder
See original GitHub issueDescribe the bug
I found several bugs in date/range picker. ~1. Week picker - week count for beginning of the year is showing incorrectly. For example first week in 2020 is actually starting from the second~ ~and it should show like this:~ Solved by #1452
-
Date & Time picker - time is not focused and when changing time using keyboard, it does not focus either:
-
Date & Time range picker - after selecting the date and clicking
Ok
button, the focus should move to the second date. Instead, the picker is closed and focus is taken off the input: Expected behaviour: -
Quarter range: When I set the end quarter, the same quarter of the start quarter is disabled, it should be enabled.
-
Placeholder issue.
- the attribute
Placeholder
has no effect unless it is placed afterPickerType
- if it is visible, it is only visible after initialization of the component. If the value is set and the cleared, default placeholder is shown
Steps to reproduce (please include code)
Except for the 5th point, all the other are reproduceable using the docs. To reproduce the 5th, use this code (last 2 pickers will have a custom placeholder and it will vanish if cleared):
<DatePicker TValue="DateTime?" Placeholder="@("Will vanish on clear")" AllowClear Picker="@DatePickerType.Date" />
<DatePicker TValue="DateTime?" AllowClear Placeholder="@("Will vanish on clear")" />
<br/><br/>
<DatePicker TValue="DateTime?" Picker="@DatePickerType.Date" Placeholder="@("Will vanish on clear")" AllowClear/>
<DatePicker TValue="DateTime?" Picker="@DatePickerType.Date" AllowClear Placeholder="@("Will vanish on clear")"/>
Further technical details
- AntDesign Nuget Package version: 0.8
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (7 by maintainers)
Top GitHub Comments
@ElderJames These two issues are still present. I will look into this.
Hi @Alexbits , this issue also addresses some issues around datepicker. I think some of them have already been solved. Could you please take a look at it when you’re free?