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
When FilterableSelect has a single option, typing in the search box leads to crash with exception
Uncaught TypeError: list.find is not a function
at findElementWithMatchingText (carbon-react_lib_components_select.js?v=6f4a0343:46078:17)
at carbon-react_lib_components_select.js?v=6f4a0343:46088:23
at basicStateReducer (chunk-EYPFM2SM.js?v=70b4df42:11633:49)
...
…ponent has a single option
Currently a runtime error is thrown when filterable-select has a single option. This work ensures
that this behaviour is handled correctly with no runtime errors firing.
fixes#6654
### [133.0.1](v133.0.0...v133.0.1) (2024-04-23)
### Bug Fixes
* **filterable-select:** ensure no runtime error is triggered when component has a single option ([4926092](4926092)), closes [#6654](#6654)
* **multi-select:** ensure console error is not fired when component has a single option ([1914940](1914940))
Description
When FilterableSelect has a single option, typing in the search box leads to crash with exception
Reproduction
https://stackblitz.com/edit/parsium-carbon-starter-df8xvy?file=src%2FApp.tsx
Steps to reproduce
Focus in the select and start typing.
JIRA ticket numbers (Sage only)
No response
Suggested solution
No response
Carbon version
128.0.0
Design tokens version
No response
Relevant browsers
Chrome
Relevant OSs
MacOS
Additional context
No response
Confidentiality
The text was updated successfully, but these errors were encountered: