MDBDatepicker allows selecting current date even if it is di


Topic: MDBDatepicker allows selecting current date even if it is disabled

Menno pro premium priority asked 2 years ago

Hi,

We have a problem with the MDB Datepicker.

Expected behavior

Under no circumstance any of the disabled dates should be selected when :filter="(date) => date != null" is present on the datepicker.

Actual behavior

If you follow these steps, the current date is selected in the datepicker:

  1. Open the datepicker.
  2. Click "Cancel"
  3. Open the datepicker.
  4. Click "OK"
  5. The current date is selected, even though it's disabled.

Resources (screenshots, code snippets etc.)

https://mdbootstrap.com/snippets/vue/menno/4518832#html-tab-view

Kind Regards,

Van der Let & Partners


Mateusz Trochonowicz staff pro premium priority answered 2 years ago

Hi! Thank you for letting us know. I have added this issue to our to do list. But in case this is going to help you, you can pass props validate to Datepicker and inform users that this is wrong date.

Keep coding!


VDLP pro premium priority answered 2 years ago

Will this issue be fixed in the next release?


Bartosz Cylwik staff answered 2 years ago

Hello! Fix is ready and is waiting for release. Best Regards!


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 Vue
  • MDB Version: MDB5 3.0.0
  • Device: n/a
  • Browser: n/a
  • OS: n/a
  • Provided sample code: No
  • Provided link: Yes