Skip to content

Commit e3af7a4

Browse files
author
刘欢
committed
fix: Fix search props leaked to DOM
1 parent 9b60445 commit e3af7a4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Select.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,14 @@ import { fillFieldNames, flattenOptions, injectPropsWithOption } from './utils/v
5858
import warningProps, { warningNullOptions } from './utils/warningPropsUtil';
5959
import useSearchConfig from './hooks/useSearchConfig';
6060

61-
const OMIT_DOM_PROPS = ['inputValue'];
61+
const OMIT_DOM_PROPS = [
62+
'inputValue',
63+
'filterOption',
64+
'optionFilterProp',
65+
'filterSort',
66+
'filterTreeNode',
67+
'treeNodeFilterProp',
68+
];
6269

6370
export type OnActiveValue = (
6471
active: RawValueType,

0 commit comments

Comments
 (0)