Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nitin-usualsmart opened this issue Jan 2, 2023 · 2 comments
Open

Comments

@nitin-usualsmart
Copy link

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
Copy link
Author

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

@mengxiong10
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants