-
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
ComboBox regression in 10.10 (carbon-components-react 7.10) #5623
Comments
Hmm, it seems like even in the older version, you are able to type but it isn't actually sorting anything. Here's what I've got using the latest version: https://codesandbox.io/s/fancy-tree-g68hr If you need an carbon/packages/react/src/components/ComboBox/ComboBox-story.js Lines 69 to 81 in 5d8392d
|
It's highlighting the matched item in our application using 7.9.3, so I guess I removed too much for the example here. If I add
What we need (and had with 7.9.3) is a controlled dropdown (via
|
Reverting this change restores the previous behaviour: c4c0da0#diff-ac9cf04f95773fcfe4d2132cd4440753L202 |
This change brings back the change detection logic of `selectedItems` that was lost by moving away from `componentWillReceiveProps()`. Fixes carbon-design-system#5623.
This change brings back the change detection logic of `selectedItems` that was lost by moving away from `componentWillReceiveProps()`. Fixes #5623.
@asudoh Thanks for the fix. Will this be included in 10.11.0 or will it have to wait for the next patch release? |
Confirmed this is fixed in 10.11.0/7.11.0, thanks! 🎉 |
What package(s) are you using?
carbon-components
carbon-components-react
Detailed description
Unable to type in text input field of a controlled ComboBox after updating to Carbon 10.10 (carbon-components-react 7.10).
ComboBox
Typing in the ComboBox input field should display the typed text. Clicking the 'x' on the right side of the ComboBox should clear the selected item.
Clicking the 'x' doesn't appear to do anything, and I am unable to type in the input field.
This was working as expected in 10.9.x/7.9.x
latest Chrome/Firefox/Safari on macOS Catalina
carbon-components-react 7.10.x
carbon-components 10.10.x
Steps to reproduce the issue
A:
B:
carbon-components-react 7.9.3 working as expected
https://codesandbox.io/s/gracious-satoshi-jn8z0
carbon-components-react 7.10.0 regression (also tested with latest version)
https://codesandbox.io/s/jolly-joliot-45t3t
Additional information
expected behaviour ^^^
The text was updated successfully, but these errors were encountered: