Skip to content

Commit

Permalink
fix(select): 异步搜索,搜索结果关键字没有高亮显示(XiaoMi#2826)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiamiao committed May 15, 2024
1 parent 5fdea15 commit f8cc2ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/select/src/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export const Select = forwardRef<HTMLDivElement | null, SelectProps>(
}

// 本地搜索执行默认高亮规则
const highlight = inSearch && searchMode === 'filter'
const highlight = inSearch && (searchMode === 'filter' || searchMode === 'dataSource')

const ret = highlight ? <Highlighter keyword={searchValue}>{node.title}</Highlighter> : true

Expand Down

0 comments on commit f8cc2ba

Please sign in to comment.