mengxiong10 / vue2-datepicker

A datepicker / datetimepicker component for Vue2
https://mengxiong10.github.io/vue2-datepicker/index.html
MIT License
1.52k stars 405 forks source link

[Bug]-Backdate logic disables the current date/today's date #735

Open nitin-usualsmart opened 1 year ago

nitin-usualsmart commented 1 year ago

Vue2-datepicker version: 0.6.8 Vue version: vue2 Browser: chrome, edge

Steps to reproduce I have used code to disable back dates in the date-range picker, it was working fine till 30-Dec-2022. When I checked today morning after two days' holiday, it was not working and disabled the current date.

Reproduction Link or Source Code image

Expected behavior Disable code is working but also disables the current date/today's date.

Actual behavior It should disable all the back dates except today's date/current date. For e.g. if today is 2-Jan-2023 then it should display 2-Jan-2023 in the date-range picker and all the back dates should be disabled.

-Nitin Gohel

nitin-usualsmart commented 1 year ago

It would be a great help if anyone can provide a solution for it.

mengxiong10 commented 1 year ago

Vue2-datepicker version: 0.6.8 ? FYI: https://codesandbox.io/s/date-range-optional-range-z06gv?file=/src/App.vue