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

Datepicker component gives "Cannot update a component while rendering a different component (Datepicker)" warning #1359

Open
Ingirorhaun opened this issue May 31, 2022 · 1 comment

Comments

@Ingirorhaun
Copy link

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

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
Copy link

Doreapp commented Oct 25, 2023

Same here!

With versions:

  • @zendeskgarden/react-datepickers: 8.73.1
  • node: 18.18.1

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

No branches or pull requests

2 participants