-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
DatePicker 1.4.4 disabledDate fixes are not complete (fix provided) #6941
Comments
DatePicker changes in 1.4.4 are not correct. See my comments here: Or just look at the fix: |
Also see this JSFiddle https://jsfiddle.net/kpnvgqcn/. None of the days in this year can be selected, yet it looks like some can be used. |
Please read my comments here for the most complete details I have provided: I don't have time to write a demo. I'm not the first person to report this and it was supposedly already fixed, but this simple code shows why the previous fix does not work and will never work. d = new Date(0);
d.setFullYear(2017);
d.setMonth(8);
// > Sun Oct 01 2017 19:00:00 GMT-0400 (Eastern Daylight Time)
d.setMonth(8);
// > Fri Sep 01 2017 19:00:00 GMT-0400 (Eastern Daylight Time) |
Element UI version
0.1.0
OS/Browsers version
Windows 10, Firefox/Chrome
Vue version
2.3.4
Reproduction Link
https://gist.github.com/remzmike/41de4e999addc6be195ab9bcf86628fc
Steps to reproduce
https://gist.github.com/remzmike/41de4e999addc6be195ab9bcf86628fc
What is Expected?
DatePicker disabledDate works
What is actually happening?
It doesn't
The text was updated successfully, but these errors were encountered: