DateTimepicker initial value ignored


Topic: DateTimepicker initial value ignored

Alistair Wilson pro premium priority asked 2 years 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/


mlazaru staff commented 2 years 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 pro premium priority commented 2 years ago

Should this not be considered a defect? When will it be fixed? It used to work as expected.


Alistair Wilson pro premium priority answered 2 years 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.


mlazaru staff commented 2 years ago

I think datetimepicker should behave like datepicker itself, so I'll add a task for this.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • 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