Skip to content

Commit

Permalink
Merge pull request #12752 from volvachev/fix-dynamic-frozen-column
Browse files Browse the repository at this point in the history
fix(primeng/pFrozenColumn): update condition for a dynamic row
  • Loading branch information
cetincakiroglu committed Apr 25, 2023
2 parents 17050a4 + 57a8e03 commit 587a4e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2890,7 +2890,7 @@ export class FrozenColumn implements AfterViewInit {
this.el.nativeElement.style.left = left + 'px';
}

let filterRow = this.el.nativeElement.parentElement.nextElementSibling;
const filterRow = this.el.nativeElement?.parentElement?.nextElementSibling;

if (filterRow) {
let index = DomHandler.index(this.el.nativeElement);
Expand Down

1 comment on commit 587a4e9

@vercel
Copy link

@vercel vercel bot commented on 587a4e9 Apr 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.