Topic: Dropdowns for Year and Month in Datepicker don't work

grtps free asked 4 years ago


Hello,

I tried to use the 2 dropdowns in the datepicker to select a year or a month. But the dropdowns don't work. Can't select any option.

Html used

<div class="md-form">
  <input placeholder="Selected date" type="text" id="date-picker-example" class="form-control datepicker">
  <label for="date-picker-example">Try me...</label>
</div>

Javascript used

$('.datepicker').pickadate({
labelMonthNext: 'Go to the next month',
labelMonthPrev: 'Go to the previous month',
labelMonthSelect: 'Pick a month from the dropdown',
labelYearSelect: 'Pick a year from the dropdown',
selectMonths: true,
selectYears: true
})

The datepicker is displayed but I can't select a year or a month from the dropdowns. Also doesn't work in the mdb editor.

Thanks in advance


Grzegorz Bujański staff commented 4 years ago

This bug is on our to-do list. We will fix it


grtps free commented 4 years ago

Thanks for the quick response. Can you estimate when the fix will be available?


Grzegorz Bujański staff commented 4 years ago

Unfortunately not. We will try to do it as soon as possible, but at the moment I cannot say when it will happen.


Gassner free answered 3 years ago


Is this bug finaly fixed? it could not be possible that this feature is not working! is there any workaround or something else? this is such a stupid issue...


Krzysztof Wilk staff commented 3 years ago

Hi!

This issue was fixed in the latest 4.19.2 release. You can check the changelog https://mdbootstrap.com/docs/b4/jquery/changelog/ :)

Best regards


s.ansari free answered 4 years ago


I think there's still an issue with the problem which @Grzegorz Bujański has reported.. Is it solved now?


Grzegorz Bujański staff commented 4 years ago

Hi. Unfortunately we are still working on it.



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

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.19.1
  • Device: PC
  • Browser: Firefox 78.0.1 (64-Bit)
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No