You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Set disabled-date e.g. to: (date) => date < new Date()
Now you can select a time value in the dropdown which is lower than the current time
Bug: You cannot type in a time < now
Expected behavior
You also can type in a time value < now, because it is for tomorrow.
Actual behavior
It gets corrected to the previous value that was set.
Underlying Problem
In l.242 of src/date-picker.js the backupTime is set to new Date().
This means that it tries to construct a date from your time input + the other values (year, month, day) of new Date(). This leads to the conflict with the disabled-date function.
The text was updated successfully, but these errors were encountered:
Vue2-datepicker version: 3.8.1
Vue version: 2.6.12
Browser: Chrome 86
Steps to reproduce
Expected behavior
You also can type in a time value < now, because it is for tomorrow.
Actual behavior
It gets corrected to the previous value that was set.
Underlying Problem
In l.242 of src/date-picker.js the backupTime is set to new Date().
This means that it tries to construct a date from your time input + the other values (year, month, day) of new Date(). This leads to the conflict with the disabled-date function.
The text was updated successfully, but these errors were encountered: