Skip to content

Commit 32444af

Browse files
author
刘欢
committed
fix: add omitDomProps to baseSelect
1 parent 12a763d commit 32444af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/TreeSelect.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ function isRawValue(value: SafeKey | LabeledValueType): value is SafeKey {
128128
return !value || typeof value !== 'object';
129129
}
130130

131+
const OMIT_DOM_PROPS = ['treeNodeFilterProp', 'filterTreeNode'];
132+
131133
const TreeSelect = React.forwardRef<BaseSelectRef, TreeSelectProps>((props, ref) => {
132134
const {
133135
id,
@@ -749,6 +751,7 @@ const TreeSelect = React.forwardRef<BaseSelectRef, TreeSelectProps>((props, ref)
749751
onSearch={onInternalSearch}
750752
// >>> Options
751753
OptionList={OptionList}
754+
omitDomProps={OMIT_DOM_PROPS}
752755
emptyOptions={!mergedTreeData.length}
753756
onPopupVisibleChange={onInternalPopupVisibleChange}
754757
popupMatchSelectWidth={popupMatchSelectWidth}

0 commit comments

Comments
 (0)