Topic: Datepicker input toogle with translations

1robin priority asked 5 months ago

Expected behavior I use a datepicker with input toggle and translations inside a modal, the datepicker must dissapear after clicking outside the datepicker

Actual behavior In a modal the datepicker doesnt dissapear after clicking outside the datepicker

Resources (screenshots, code snippets etc.)

Kamila Pieńkowska staff answered 5 months ago

You have double init on the datepicker. You use data attribute to init component and you do it second time with JS constructor. Remove data-mdb-datepicker-init and datepicker will work fine.

U2P priority commented 4 months ago

I also got trapped, could you indicate this in the documentation? Usually we start by creating a simple component and add the functionalities one by one until we reach the target.

Is there a place where we can find all the translatable keys? I found them for the datepicker but not the datetimepicker

Kamila Pieńkowska staff commented 4 months ago

In the API section there is info about available initiation methods.

Datetimepicker consists of datepicker and timepicker parts and you can translate them via settings option for datepicker or timepickeroptions.

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 7.1.0
  • Device: Mobile
  • Browser: Chrome
  • OS: Android
  • Provided sample code: No
  • Provided link: Yes