Skip to content

Commit

Permalink
fix(platform): table spanning (#12783)
Browse files Browse the repository at this point in the history
[#12677](#12677)

Fixed an issue where using `semanticHighlighting` and `group` properties simultaneously in `fdp-table` caused unexpected behavior. Updated logic to ensure compatibility and proper rendering when these features are used together.

Co-authored-by: khotcholava <[email protected]>
  • Loading branch information
khotcholava and khotcholavaSuzy authored Nov 28, 2024
1 parent 34e07ee commit 081c84b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/platform/table/table.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2119,7 +2119,9 @@ export class TableComponent<T = any>

/** @hidden */
private _calculateTableColumnsLength(): void {
this._tableColumnsLength = this.getTableColumns().length + (this._isSelectionColumnShown ? 1 : 0);
const isGroupable = this.initialState?.initialGroupBy.length;
this._tableColumnsLength =
this.getTableColumns().length + (this._isSelectionColumnShown || isGroupable ? 1 : 0);
}

/** @hidden */
Expand Down

0 comments on commit 081c84b

Please sign in to comment.