Topic: datepicker inline not working properly

sody priority asked 2 years ago

Expected behavior

datepicker shows (translated) , select date, hide calendar, click again calendar opens

Actual behavior

second open not working

using toggle button reverts back to english

Resources (screenshots, code snippets etc.)

Dawid Wajszczuk staff answered 2 years ago


Just remove or rename "datepicker" class in div element. The problem occurs due to double initialization, first from datepicker class and second via JS. Here is the snippet with working example

Also here is another one created by one of our users: It allows you to create your own class for the datepicker with all the locales, so you provide them once instead of doing this for every datepicker separately.

Keep coding,

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 3.9.0
  • Device: desktop
  • Browser: chrome
  • OS: windows10
  • Provided sample code: No
  • Provided link: Yes