Datepicker component gives "Cannot update a component while rendering a different component (Datepicker)" warning
Ingirorhaun opened this issue · 1 comments
Ingirorhaun commented
Expectations
When following the example in the Datepicker documentation, the code should work without errors/warnings.
Reality
The first time the state is updated, this warning appears.
Steps to Reproduce
1.Use the code in the documented example inside of another component.
2.Select any date
Codesandbox: https://codesandbox.io/s/agitated-silence-vb9euf
Fine Print
- Component:
Datepicker
- Version: 8.52.0
- Browsers: Chrome
Doreapp commented
Same here!
With versions:
@zendeskgarden/react-datepickers
: 8.73.1node
: 18.18.1