-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add component 'date picker' #89
Comments
(added in 3.16.0) |
The extension needs to be applied selectively, i.e not in the modeladmin context. The main issue is that the date picker component requires a text input type.. date input type will work but there are 2 calendar icons. |
The implementation only changes the type attribute, not the class, so validation is unaffected. |
A possible blocker here is that unlike the standard date input, this component sends dates through in the format dd/mm/yyyy e.g 04/05/2024 for 4th May. If the date provided in that format is considered to be invalid, the value will not be handled by Additionally, adding dates like The standard date input only handle ISO date format and converts to locale format which solves this issue. |
This seems to duplicate widespread browser and device support for date pickers, and provides yet another interface for people to understand how to pick a date.
Refer: https://caniuse.com/input-datetime
In nearly all cases, the standard date input fields would be a better choice, especially when dealing with dates that are more than a month in the past or future.
The standard date/datetime field willl provide this feature but we can provide a template for this, for the sake of completeness.
Date validation will need to be considered, as the component uses a text input.
The text was updated successfully, but these errors were encountered: