[Bug]: ComboBox: Using the shouldFilterItem
prop no longer works with onChange
#16630
Closed
2 tasks done
Labels
Package
@carbon/react
Browser
Chrome, Firefox
Package version
1.58.1
React version
18.0.0
Description
Using the
shouldFilterItem
prop in ComboBox no longer works. If you filter items and click on a filtered item, the wrong item is passed in the onChange. eg. If the filtered list is one item long, and the original list is more. When you click on the filtered item, you will get back the first item from the original list.Reproduction/example
https://codesandbox.io/p/sandbox/carbonreactcomboboxissue-fpyshg?file=%2Fsrc%2FApp.js%3A10%2C20
Steps to reproduce
On version 1.58.1 with a Combobox with a shouldFilterItem function.
items: ['first', 'second', 'third']
third
third
)first
Suggested Severity
Severity 2 = User cannot complete task, and/or no workaround within the user experience of a given component.
Application/PAL
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: