-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
console warning message when using ComboBox #2543
Comments
hey @konghu thanks for submitting this ticket! would you mind creating a reduced test case in Code Sandbox? it would help a lot with testing any potential fixes |
@emyarod I've created a sandbox at https://codesandbox.io/s/ppnv5pon7 Reproduction Steps:
The warning seems to be generated around this code inside the Full Warning Message:
|
Saw that the issue happens in our Storybook (Combobox - Default), too, but it has to be a dev build (and thus not in react.carbondesignsystem.com). As the call stack tells, the issue seems to have something to do with Downshift calling |
We've marked this issue as stale because there hasn't been any activity for a couple of weeks. If there's no further activity on this issue in the next three days then we'll close it. Thanks for your contributions. |
@asudoh any further insight into this log message? 📜 |
@dakahn No, unfortunately. Debugging requires knowledge of how Downshift works internally. |
Hi there! 👋 If you're wondering why this issue was moved, we're currently updating our repo structure so that every package is found in the same project. This should not have any impact for you, but we wanted to give you a heads up in case you were wondering what is going on. If you have any questions, feel free to reach out to us on Slack or contact us at: [email protected]. Thanks! |
We've marked this issue as stale because there hasn't been any activity for a couple of weeks. If there's no further activity on this issue in the next three days then we'll close it. You can keep the conversation going with just a short comment. Thanks for your contributions. |
As there's been no activity since this issue was marked as stale, we are auto-closing it. |
Seems to be same as: #3637 |
Downshift `v1`'s 'onInputValueChange' seems to be called from React state updater function and thus calling `setState()` in `onInputValueChange` handler causes React's "An update was scheduled from inside an update function" warning. Fixes carbon-design-system#2543. Fixes carbon-design-system#3637.
Downshift `v1`'s `onInputValueChange` seems to be called from React state updater function and thus calling `setState()` in `onInputValueChange` handler causes React's "An update was scheduled from inside an update function" warning. Fixes carbon-design-system#2543. Fixes carbon-design-system#3637.
* fix(ComboBox): switch from onInputValueChange to onStateChange Downshift `v1`'s `onInputValueChange` seems to be called from React state updater function and thus calling `setState()` in `onInputValueChange` handler causes React's "An update was scheduled from inside an update function" warning. Fixes #2543. Fixes #3637. * test(ComboBox): update upon new internal API
We are seeing this error message when using ComboBox component
An example of our use:
The text was updated successfully, but these errors were encountered: