Skip to content

Commit

Permalink
fix(ui5-table): adjust colspan value in MultiSelect mode (#5256)
Browse files Browse the repository at this point in the history
  • Loading branch information
niyap authored May 23, 2022
1 parent 0c01d9f commit 405702c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/main/src/Table.js
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,11 @@ class Table extends UI5Element {
this._noDataDisplayed = !this.rows.length && !this.hideNoData;
this.visibleColumnsCount = this.visibleColumns.length;

if (this.isMultiSelect) {
// we have to count the selection column as well
this.visibleColumnsCount += 1;
}

this._allRowsSelected = selectedRows.length === this.rows.length;

this._prevFocusedRow = this._prevFocusedRow || this.rows[0];
Expand Down

0 comments on commit 405702c

Please sign in to comment.