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

selectDate() set date to undefined when minDate is set and selected date is <= minDate #1056

Closed
KuSh opened this issue Oct 18, 2019 · 0 comments · Fixed by #1064
Closed

selectDate() set date to undefined when minDate is set and selected date is <= minDate #1056

KuSh opened this issue Oct 18, 2019 · 0 comments · Fixed by #1064
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@KuSh
Copy link

KuSh commented Oct 18, 2019

Problem lies at

date = this.minDate;

This should be :

        if(this.props.minDate && this.props.minDate > date) {
            date = this.props.minDate;
        }

Same thing for maxDate I think (but not tested) :

        if(this.props.maxDate && this.props.maxDate < date) {
            date = this.props.maxDate;
        }
mertsincan added a commit that referenced this issue Nov 5, 2019
Fixed #1056 - Access to minDate and maxDate props in Calendar
@mertsincan mertsincan added the Type: Bug Issue contains a defect related to a specific component. label Nov 5, 2019
@mertsincan mertsincan added this to the 3.3.3 milestone Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants