Table: 'this.el.nativeElement.parentElement is null' for frozen columns which are dynamically generated #12748
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
I generate my table columns with frozen columns dynamically and newly assign them on every update.

When I update the table columns I get the error:
The error is from the updateStickyPosition function where the parentElement is undefined:
let filterRow = this.el.nativeElement.parentElement.nextElementSibling;
Environment
See stackblitz
Reproducer
https://stackblitz.com/edit/github-w2zrds
Angular version
15.2.2
PrimeNG version
15.2.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
16.19.0
Browser(s)
All
Steps to reproduce the behavior
Expected behavior
No error thrown
The text was updated successfully, but these errors were encountered: