diff --git a/core/components/atoms/dropdown/DropdownList.tsx b/core/components/atoms/dropdown/DropdownList.tsx index 2b46ee41fb..1a01ebbce4 100644 --- a/core/components/atoms/dropdown/DropdownList.tsx +++ b/core/components/atoms/dropdown/DropdownList.tsx @@ -719,7 +719,7 @@ const DropdownList = (props: OptionsProps) => { } }; - const enableSearch = (withSearch || props.async) && (!isDropdownListBlank || errorType === 'NO_RECORDS_FOUND'); + const enableSearch = withSearch || props.async; return ( //TODO(a11y) diff --git a/core/components/atoms/dropdown/__tests__/Dropdown.test.tsx b/core/components/atoms/dropdown/__tests__/Dropdown.test.tsx index 7c23ba7bb1..07e8f2ec97 100644 --- a/core/components/atoms/dropdown/__tests__/Dropdown.test.tsx +++ b/core/components/atoms/dropdown/__tests__/Dropdown.test.tsx @@ -492,14 +492,6 @@ describe('Dropdown component with search', () => { expect(screen.getByPlaceholderText('Custom search text')).toBeInTheDocument(); }); - it('is not rendered when no record is available', () => { - const { getByTestId, queryByTestId } = render(); - const dropdownTrigger = getByTestId(trigger); - fireEvent.click(dropdownTrigger); - - expect(queryByTestId('DesignSystem-Input')).not.toBeInTheDocument(); - }); - it('is rendered when search returns no result', async () => { const { getByTestId, getAllByTestId } = render();