Skip to content

Commit

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

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

const ret = highlight ? (
<Checkbox checked={node.checked} disabled={node.disabled}>
Expand Down

0 comments on commit 18b9850

Please sign in to comment.