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

Controlled showOverlay state #872

Closed

Conversation

matthova
Copy link

This PR allows the showOverlay prop to drive showOverlay state of day-picker-input. It uses React's getDrivedStateFromProps lifecycle, but it could be changed to use componentWillReceiveProps if necessary.

I've updated the input-custom-overlay.js code to remove the bug as described in #819.

@matthova
Copy link
Author

Closing again. I should have put my other work in a different branch 🤷‍♂️

@matthova matthova closed this Feb 26, 2019
@kambleaa007
Copy link

How to use this piece of code

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

Successfully merging this pull request may close these issues.

None yet

2 participants