Table: Having any rowexpansion
template breaks loadingbody
#16195
Labels
Resolution: Help Wanted
Issue or pull request requires extra help and feedback
Milestone
Describe the bug
Adding a
rowexpansion
template makes the table component completely ignore the presence of aloadingbody
template.I believe the problem stems from
primeng/src/app/components/table/table.ts
Lines 3079 to 3144 in 512f03d
The
loadingBodyTemplate
property is not referenced at all in the*ngIf="dt.expandedRowTemplate
branch.Environment
Reproducible in StackBlitz (forked from virtual scroll / lazy loading example in docs)
Reproducer
https://stackblitz.com/edit/scxuay?file=src%2Fapp%2Ftable-virtual-scroll-lazy-demo.html
Angular version
18.1.4
PrimeNG version
17.18.7
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
v18.20.3
Browser(s)
FF 129.0
Steps to reproduce the behavior
No response
Expected behavior
The
loadingbody
template is automatically used even if row expansion is configured (there is nothing to expand anyway while the row is loading)The text was updated successfully, but these errors were encountered: