Skip to content

Commit 41abea9

Browse files
authored
fix(Table): prevent javascript error when set IsDetails to true (#7813)
* fix: 修复脚本错误 * chore: bump version 10.5.0-beta04
1 parent b1ec468 commit 41abea9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/BootstrapBlazor/BootstrapBlazor.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>10.5.0-beta02</Version>
4+
<Version>10.5.0-beta04</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

src/BootstrapBlazor/Components/Table/Table.razor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ const setResizeListener = table => {
677677
const rows = [...tbody.children].filter(i => i.nodeName === 'TR');
678678
rows.forEach(row => {
679679
const header = row.children.item(colIndex);
680-
if (header.classList.contains('fixed')) {
680+
if (header !== null && header.classList.contains('fixed')) {
681681
resizeNextFixedColumnWidth(header, calcColWidth);
682682
}
683683
});

0 commit comments

Comments
 (0)