Topic: DateTimepicker initial value ignored
Alistair Wilson priority asked 1 year ago
Expected behavior The value of the input should populate in the calendar for date and time
Actual behavior The value of the associated input doesn't populate in the calendar for date and time which makes this control unusable.
Resources (screenshots, code snippets etc.) The examples show this issue already https://mdbootstrap.com/docs/standard/forms/datetimepicker/
Alistair Wilson priority answered 1 year ago
Here is a snippet that shows the problem. Click the calendar and the initial value is not displayed on the calendar.
https://mdbootstrap.com/snippets/standard/itam/5123428
Datepicker works fine, but DateTimepicker does not.
Mateusz Lazaru staff commented 1 year ago
I think datetimepicker should behave like datepicker itself, so I'll add a task for this.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Priority
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 6.2.0
- Device: Desktop
- Browser: Edge
- OS: Windows 11
- Provided sample code: No
- Provided link: Yes
Mateusz Lazaru staff commented 1 year ago
You could use datepicker's
startDate
option equal to input's value to change the default date to which datepicker will navigate.https://mdbootstrap.com/snippets/standard/mlazaru/5117111#js-tab-view
Alistair Wilson priority commented 1 year ago
Should this not be considered a defect? When will it be fixed? It used to work as expected.