From 5b33290b0ca981776bf5dc5057baa8082e73a29c Mon Sep 17 00:00:00 2001 From: Ian Bolton Date: Tue, 26 Mar 2024 13:11:27 -0400 Subject: [PATCH] bug(Select): Remove checkbox from no results found option (#10163) --- .../Select/examples/SelectMultiTypeaheadCheckbox.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/react-core/src/components/Select/examples/SelectMultiTypeaheadCheckbox.tsx b/packages/react-core/src/components/Select/examples/SelectMultiTypeaheadCheckbox.tsx index 22bb915ba3e..7a88b6f0a1a 100644 --- a/packages/react-core/src/components/Select/examples/SelectMultiTypeaheadCheckbox.tsx +++ b/packages/react-core/src/components/Select/examples/SelectMultiTypeaheadCheckbox.tsx @@ -44,7 +44,12 @@ export const SelectMultiTypeaheadCheckbox: React.FunctionComponent = () => { // When no options are found after filtering, display 'No results found' if (!newSelectOptions.length) { newSelectOptions = [ - { isDisabled: false, children: `No results found for "${inputValue}"`, value: 'no results' } + { + isDisabled: false, + children: `No results found for "${inputValue}"`, + value: 'no results', + hasCheckbox: false + } ]; }