Topic: MDBDatepicker allows selecting current date even if it is disabled
VDLP 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:
- Open the datepicker.
- Click "Cancel"
- Open the datepicker.
- Click "OK"
- 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 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!
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Priority
- Premium support: Yes
- Technology: MDB Vue
- MDB Version: MDB5 3.0.0
- Device: n/a
- Browser: n/a
- OS: n/a
- Provided sample code: Yes
- Provided link: Yes