-
-
Notifications
You must be signed in to change notification settings - Fork 406
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
I can't select the ongoing year #169
Comments
v2.4.3 fixed it |
Thanks mate :) |
I have a similar issue.
This correctly eliminates all dates and times before 10 minutes into the future. But the first available minute to select cannot actually be selected. A minute later is easily selectable. This also occures when I just compare current time with chosen time (without the 10 minute buffer). Could you either tell me, where I'm going wrong or fix this issue, as you did the one above? Thanks! |
@RobertMoravek You can set the value to a valid date when you select date. <date-picker
v-model="date"
type="datetime"
@pick="handleChange"
:disabled-time="disabledTime"
></date-picker> methods: {
handleChange(date, type) {
if (type === "date") {
const now = new Date();
const value = new Date(date);
value.setHours(now.getHours(), now.getMinutes() + 11, 0, 0);
this.date = value;
}
},
disabledTime(date) {
const in10Minutes = new Date(Date.now() + 10 * 60000);
return date < in10Minutes;
},
}, |
@RobertMoravek Maybe the second in your in10Minutes.setSeconds(0, 0) |
UNfortunately I get the same issue. Even if I do the same thing with "now". I can select the first no disabaled time but the field showing the time just stays empty. |
Hello!
When clicking on the year, 2018 remain grey and unclickable. 2019 and above is fine but the actual year isn't selectable.
The text was updated successfully, but these errors were encountered: