wojtekmaj/react-daterange-picker

How can I get rid of this warning?

Closed this issue · 4 comments

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`.

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

Thank you, looking forward to the release. <3

Released!

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