Skip to content

Commit

Permalink
fix: [breadcrumb] 修复title参数无法传入ReactNode问题 fix kingdee#917
Browse files Browse the repository at this point in the history
  • Loading branch information
liangfeng_wang committed Oct 29, 2024
1 parent c489505 commit 6e87798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/breadcrumb/breadcrumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const Breadcrumb = (props: IBreadcrumbProps): FunctionComponentElement<IBreadcru

useEffect(() => {
const isMore = itemsConfig?.some((item: any) => {
return item?.title?.props?.children.type.displayName === 'Tooltip'
return item?.title?.props?.children?.type?.displayName === 'Tooltip'
})
setOpenEllipsis(isMore && itemsConfig.length === MIN_ITEM)
}, [itemsConfig])
Expand Down

0 comments on commit 6e87798

Please sign in to comment.