Skip to content

Commit

Permalink
fix: title missing
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Jan 4, 2023
1 parent 041bcba commit c65aef2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/Cell/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,13 @@ function Cell<RecordType>(props: CellProps<RecordType>) {
}

// >>>>> Title
const title = getTitleFromCellRenderChildren({
rowType,
ellipsis,
children: childNode,
});
const title =
additionalProps.title ??
getTitleFromCellRenderChildren({
rowType,
ellipsis,
children: childNode,
});

// >>>>> ClassName
const mergedClassName = classNames(
Expand Down

0 comments on commit c65aef2

Please sign in to comment.