wojtekmaj / react-daterange-picker

A date range picker for your React app.
https://projects.wojtekmaj.pl/react-daterange-picker
MIT License
524 stars 64 forks source link

How can I get rid of this warning? #313

Closed sangdth closed 1 year ago

sangdth commented 1 year ago

This warning on portalContainer on my nextjs project.

Warning: Failed prop type: DateRangePicker: prop type `portalContainer` is invalid; it must be a
function, usually from the `prop-types` package, but received `undefined`.This often happens 
because of typos such as `PropTypes.function` instead of `PropTypes.func`.
wojtekmaj commented 1 year ago

Seems to be caused by b9040d409e1b75644adf8da7f7aeacbc721a0859 which fixed #311. Perhaps we could replace ternary with object assignment 🤔

sangdth commented 1 year ago

Thank you, looking forward to the release. <3

wojtekmaj commented 1 year ago

Released!

sangdth commented 1 year ago

Thanks, I can confirm it's gone in my repo.