-
-
Notifications
You must be signed in to change notification settings - Fork 403
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] :disabled-time disables time starting from next hour #384
Comments
You can set |
Thanks for response, but how it will help? |
If your value is null, You should set the |
https://jsfiddle.net/mfw2L3co/ Please try to select time 1 minute from now(). It is not possible. |
You should set the value of |
When switching date causes time is disabled, the time of `defaultValue` should be used by default.
I've updated to last version, but still no result, or I just can't understand how to use Can you edit my jsfiddle please and paste the link here? |
v3.2.1. |
|
Set the |
Suppose |
Finally, works and now it's clear about |
@mengxiong10 please check https://jsfiddle.net/tvaz230r/3/ I changed format from |
|
Thanks! This works in example. But I have more complicated actual use case. I'll really appreciate. Can't understand what I'm doing wrong. |
@mengxiong10 can you help please? |
@plakhin When select the date, you should check the time. |
<time-panel
:value="slotProps.value < new Date() ? new Date(Date.now() + 60 * 1000) : slotProps.value"
></time-panel>
|
Works perfect! Thanks! |
Vue2-datepicker version: 3.1.1
Vue version: 2.6.10
Browser: Chrome 78
Steps to reproduce
:disabled-time="(date) => date < new Date()"
Expected behavior
Lets suppose current time is
15:33:03
User should be able to select
15:33:04
and laterActual behavior
User can able to select
16:00:00
and later.The text was updated successfully, but these errors were encountered: