You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe in detail the issue you're having.
If you add focus to the combo box but then click outside of the combo box so it loses focus, the following warning appears in the console:
Warning: An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
Is this issue related to a specific component?
Yes, ComboBox
What did you expect to happen? What happened instead? What would you like to
see changed?
There should be no warning logged in the console when a combo box loses focus.
What browser are you working in?
Chrome, Edge and Firefox
What version of the Carbon Design System are you using?
carbon-components version 10.4.0
carbon-components-react version 7.4.1
What offering/product do you work on? Any pressing ship or release dates we
should be aware of?
Steps to reproduce the issue
Open the code sandbox and click on or add focus to the combo box
Click outside of the combo box or cause it to lose focus
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.
Fixescarbon-design-system#2543.
Fixescarbon-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.
Fixescarbon-design-system#2543.
Fixescarbon-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
What package(s) are you using?
carbon-components
-> 10.4.0carbon-components-react
-> 7.4.1Detailed description
Warning: An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
Steps to reproduce the issue
https://codesandbox.io/embed/codesandbox-wrm5h
The text was updated successfully, but these errors were encountered: