-
Notifications
You must be signed in to change notification settings - Fork 67
Date Picker auto-completes with wrong date #104
Comments
I have the same issue. Maybe also related to this. If you try to finish the whole date and press tab or click on another field, the date changes to something else and not the one you just typed. Same thing happens if you paste the date. |
I have the same issue. Also when editing a saved date. Any news? |
Any fix for this issue? Is there a workaround? |
@saadmb right now I don't have a fix for this issue however there's a prop |
As long as we're on the subject, the date-picker could suffer several improvements beyond just being able to type in the date manually:
|
If I have to choose a date from 30 years ago, I would have to walk through it every month. Maybe a good workaround would be to have a fast way to change the year. For example, clicking on the year to change it. |
Yes, Date Picker is not optimized for years ago. I think since it's open source, it might be easy to put a PR. Don't know which UI framework they use for inputs. We might find an advanced Date Picker like the one in Material UI labs. |
We are planning on releasing a new one soon |
@soupette great news. And if in the future there could be a possibility to replace any Input by a custom input that implements some event, that would be awesome. For the moment, the Date Picker improvement is enough. |
There's already such feature in the Strapi admin panel, you can check out this guide you can easily adapt the guide by creating a |
@soupette great, I didn't know. Thanks |
no news about this problem ? |
@absmoca you can use custom component to replace the default one for the types provided by Strapi. https://strapi.io/blog/how-to-change-the-wysiwyg-in-strapi |
When attempting to enter a date, the date picker's input field gets auto-completed with the day and year.
Steps to Reproduce:
date
TAB
into the date field (this may not be necessary but is the step I took)08/
and wait. Field will auto-completed at this point.Resulting Behavior
The input field gets auto-completed with
01/2001
for a full date of08/01/2001
. Further, if you try to delete the2001
and pause, it will autocomplete to2002
.Expected Behavior:
Nothing should happen.
Related Behavior
0
into the field after tabbing into it and waiting will result in01/01/2000
01/01/2000
, deleting the final0
and pausing will result in an auto-complete of01/01/0200
.This is very frustrating for any user. Often by the time they find the proper number keys to type in the a full year like
2018
, the input will have already auto-completed with an incorrect year of2001
, resulting in a date like01/01/20012018
A sample can be seen in the animated GIF below. Any pause in typing results in the auto-complete. In this example, I typed
08/
and paused. Later I tried to delete the "bad" data, only to have the field auto-complete. The goal was to type in08/09/2018
.The text was updated successfully, but these errors were encountered: