Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/TreeSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ function isRawValue(value: SafeKey | LabeledValueType): value is SafeKey {
return !value || typeof value !== 'object';
}

const OMIT_DOM_PROPS = ['treeNodeFilterProp', 'filterTreeNode'];

const TreeSelect = React.forwardRef<BaseSelectRef, TreeSelectProps>((props, ref) => {
const {
id,
Expand Down Expand Up @@ -749,6 +751,7 @@ const TreeSelect = React.forwardRef<BaseSelectRef, TreeSelectProps>((props, ref)
onSearch={onInternalSearch}
// >>> Options
OptionList={OptionList}
omitDomProps={OMIT_DOM_PROPS}
emptyOptions={!mergedTreeData.length}
onPopupVisibleChange={onInternalPopupVisibleChange}
popupMatchSelectWidth={popupMatchSelectWidth}
Expand Down