diff --git a/src/BootstrapBlazor/BootstrapBlazor.csproj b/src/BootstrapBlazor/BootstrapBlazor.csproj index 385ab956a28..6709ac22bce 100644 --- a/src/BootstrapBlazor/BootstrapBlazor.csproj +++ b/src/BootstrapBlazor/BootstrapBlazor.csproj @@ -1,7 +1,7 @@  - 9.11.2-beta03 + 9.11.2-beta04 diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.js b/src/BootstrapBlazor/Components/Table/Table.razor.js index 37682ffe1b6..ac49abbb80d 100644 --- a/src/BootstrapBlazor/Components/Table/Table.razor.js +++ b/src/BootstrapBlazor/Components/Table/Table.razor.js @@ -730,14 +730,14 @@ const autoFitColumnWidth = async (table, col) => { const index = indexOfCol(col); let rows = null; if (table.thead) { - rows = table.body.querySelectorAll('table > tbody > tr:not(.is-detail)'); + rows = [...table.tables[1].tBodies[0].rows].filter(x => !x.classList.contains('is-detail')); } else { - rows = table.tables[0].querySelectorAll('table > tbody > tr:not(.is-detail)'); + rows = [...table.tables[0].tBodies[0].rows].filter(x => !x.classList.contains('is-detail')); } let maxWidth = 0; - [...rows].forEach(row => { + rows.forEach(row => { const cell = row.cells[index]; maxWidth = Math.max(maxWidth, calcCellWidth(cell)); });