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

reactstrap-validation-date Failed prop type: CalendarWeek Warnings #249

Closed
jeffski13 opened this issue Aug 30, 2019 · 2 comments
Closed

Comments

@jeffski13
Copy link
Contributor

jeffski13 commented Aug 30, 2019

I am using v3.1.1 of reactstrap-validation-date.
When I click on the date picker start date i get the following warning

Warning: Failed prop type: CalendarWeek: invalid value TypeError: CalendarWeek: invalid value supplied to 0.,TypeError: `CalendarWeek` only accepts children of type withStyles(CalendarDay),TypeError: `CalendarWeek` only accepts children of type withStyles(CustomizableCalendarDay) supplied to required children.

My implementation is here:

<AvDateRangeField
              name="dateRange"
              aria-label="date-range"
              start={{name: 'date.start'}}
              end={{name: 'date.end'}}
              min="01/01/2019"
              max={maxDate.format('MM/DD/YYYY')}
              distance={{max: {value: 1, units: 'month'}}}
              defaultValues={{start: {value: -32, units: 'days'}, end: {value: -1, units: 'days'}}}
              validate={{
                required: {
                  errorMessage: 'This field is required',
                },
              }}
            />```
@GoPro16
Copy link
Contributor

GoPro16 commented Aug 31, 2019

We use react-hot-loader with availity-workflow so until the below issue is resolved this warning will continue.

react-dates/react-dates#950

@GoPro16 GoPro16 closed this as completed Sep 12, 2019
@diegodesouza
Copy link

I suggest looking into the solution proposed here ljharb/prop-types-tools#39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants