Skip to content

Commit

Permalink
fix(Table): fix nil ellipsis render bug (#3233)
Browse files Browse the repository at this point in the history
* fix(Table): fix nil ellipsis render bug

* chore: update snapshot

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
uyarn and github-actions[bot] authored Nov 28, 2024
1 parent 7c203bd commit b5b9dbf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/table/Ellipsis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default function Ellipsis(props: EllipsisProps) {
e.type === 'mouseleave' ? onTriggerMouseleave() : onTriggerMouseenter();
}, 80);

const cellNode = props.children || props.content;
const cellNode = props.content || props.children;
const ellipsisContent = (
<div ref={root} className={ellipsisClasses} onMouseEnter={onMouseAround} onMouseLeave={onMouseAround}>
{cellNode}
Expand Down
Loading

0 comments on commit b5b9dbf

Please sign in to comment.