mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
* fix(table): add empty content only when table size is 0 #2742 * fix(table): added changeset --------- Co-authored-by: shrinidhi.upadhyaya <shrinidhi.upadhyaya@stud.uni-bamberg.de>
This commit is contained in:
parent
cadbb30cfb
commit
2126ea1863
5
.changeset/lazy-pears-turn.md
Normal file
5
.changeset/lazy-pears-turn.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@nextui-org/table": patch
|
||||
---
|
||||
|
||||
Fixes adding of empty content at the bottom of the table when rows present in Table (#2742)
|
||||
@ -121,7 +121,9 @@ const TableBody = forwardRef<"tbody", TableBodyProps>((props, ref) => {
|
||||
>
|
||||
{bodyProps.loadingContent}
|
||||
</td>
|
||||
{!emptyContent && <td className={slots?.emptyWrapper({class: classNames?.emptyWrapper})} />}
|
||||
{!emptyContent && collection.size === 0 ? (
|
||||
<td className={slots?.emptyWrapper({class: classNames?.emptyWrapper})} />
|
||||
) : null}
|
||||
</tr>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user