MDB breaks date input display format


Topic: MDB breaks date input display format

Robin Deprins pro asked 2 years ago

According to the W3 specification date inputs need to be ISO 8601 formatted. The browser will then display its own datepicker and use the user's locale to show a correctly formatted date.

Example: https://jsfiddle.net/qg28ba4h/

But MDB breaks this functionality: https://mdbootstrap.com/snippets/jquery/robin_deprins/2157046

This seems to be due to a function "ChangeDateInputType" in MDB changing the input type to "text" when the input is not selected. Please don't change the default browser behavior, this should be hidden behind an MDB specific class.


Tomek Makowski staff commented 2 years ago

Yes you're right. We have this issue already in our "to do" list and we will fix soon.


Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Resolved

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.19.0
  • Device: dell
  • Browser: chrome, edge and firefox
  • OS: win 10
  • Provided sample code: No
  • Provided link: Yes