Skip to content

Commit

Permalink
format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LoaderB0T committed Nov 13, 2024
1 parent 675c6d5 commit 9749ea3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2512,8 +2512,8 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable
onColumnResizeBegin(event: any) {
let containerLeft = DomHandler.getOffset(this.containerViewChild?.nativeElement).left;
let resizeThElement = event.target.parentElement;
while(resizeThElement.tagName !== 'TH') {
if(resizeThElement.tagName === 'TABLE') {
while (resizeThElement.tagName !== 'TH') {
if (resizeThElement.tagName === 'TABLE') {
throw new Error('resizeColumnElement is not a TH element and it is not a child of a TH element');
}
resizeThElement = resizeThElement.parentElement;
Expand Down

0 comments on commit 9749ea3

Please sign in to comment.