diff --git a/src/utils/valueUtil.ts b/src/utils/valueUtil.ts index ff60640a3..ea85f145c 100644 --- a/src/utils/valueUtil.ts +++ b/src/utils/valueUtil.ts @@ -180,7 +180,7 @@ function getFilterFunction(optionFilterProp: string) { // Option value search const rawValue = option[optionFilterProp]; const value = toRawString(rawValue).toLowerCase(); - return value.includes(lowerSearchText) && !option.disabled; + return value.includes(lowerSearchText); }; } diff --git a/tests/Select.test.tsx b/tests/Select.test.tsx index 489a889bd..00a08bc63 100644 --- a/tests/Select.test.tsx +++ b/tests/Select.test.tsx @@ -840,7 +840,7 @@ describe('Select.Basic', () => { ); wrapper.find('input').simulate('change', { target: { value: '1' } }); - expect(wrapper.find('List').props().data).toHaveLength(2); + expect(wrapper.find('List').props().data).toHaveLength(3); }); it('should include disabled item in options', () => {