-
Notifications
You must be signed in to change notification settings - Fork 1
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
Year picker sometimes defaults to earliest year instead of current year #5
Comments
I noticed and solve this issue yesterday when I made the changes for clear date button. Now if you you do not set a default date for the date picker or the date object you used to init the date is null or undefined or 'Invalid Date' it will default current day. I made a test again and it's not reproducing anymore. If it does please provide a test case. |
I should have been more clear with this issue. This refers specifically to the year selector within the date-picker. You can see in the screenshot, it defaults to the current date, but clicking on the year picker takes you to the first year / the top of the scroll window. However, one subsequent switch after that (from year -> to date -> back to year) produces the expected behavior like this: |
You're right. I will try to fix it asap. |
+1 It looks like the problem comes not from When the "centerSelected" method is called for the first time, the template might be not rendered yet. |
We've opened a new issue in paper-date-picker: bendavis78/paper-date-picker#187 I wouldn't expect a quick fix, although. The activity on the issues in this repo is really low recently. |
To be revised after paper-date-picker issue is fixed. |
Could be a paper-datepicker problem not an etools-datepicker problem, but definitely needs fix. Very annoying for UX
The text was updated successfully, but these errors were encountered: