Skip to content

Commit c351a51

Browse files
committed
fix(Table): 双击表头自动调整列宽功能在表格有明细行时不能正常工作 #6797
Merge branch 'dev-feature' of https://github.com/ljmay168/BootstrapBlazor into dev-feature
2 parents eaab90e + d451a73 commit c351a51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,10 +811,10 @@ const setCopyColumn = table => {
811811
rows = table.body.querySelectorAll('table > tbody > tr')
812812
}
813813
else if (el.querySelector('.table-fixed-column')) {
814-
rows = el.querySelectorAll('.table-scroll > .overflow-auto > table > tbody > tr')
814+
rows = el.querySelectorAll('.table-scroll > .overflow-auto > table > tbody > tr:not(.is-detail)')
815815
}
816816
else {
817-
rows = el.querySelectorAll('.table-scroll > table > tbody > tr')
817+
rows = el.querySelectorAll('.table-scroll > table > tbody > tr:not(.is-detail)')
818818
}
819819

820820
let content = ''

0 commit comments

Comments
 (0)