Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/Body/MeasureRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ export default function MeasureRow({
const { measureRowRender } = useContext(TableContext, ['measureRowRender']);

const measureRow = (
<tr aria-hidden="true" className={`${prefixCls}-measure-row`} style={{ height: 0 }} ref={ref}>
<tr
aria-hidden="true"
tabIndex={-1}
className={`${prefixCls}-measure-row`}
style={{ height: 0 }}
ref={ref}
>
<ResizeObserver.Collection
onBatchResize={infoList => {
if (isVisible(ref.current)) {
Expand Down
5 changes: 5 additions & 0 deletions tests/__snapshots__/ExpandRow.spec.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ LoadedCheerio {
aria-hidden="true"
class="rc-table-measure-row"
style="height: 0px;"
tabindex="-1"
>
<td
style="padding-top: 0px; padding-bottom: 0px; border-top: 0px; border-bottom: 0px; height: 0px;"
Expand Down Expand Up @@ -374,6 +375,7 @@ LoadedCheerio {
aria-hidden="true"
class="rc-table-measure-row"
style="height: 0px;"
tabindex="-1"
>
<td
style="padding-top: 0px; padding-bottom: 0px; border-top: 0px; border-bottom: 0px; height: 0px;"
Expand Down Expand Up @@ -677,6 +679,7 @@ LoadedCheerio {
aria-hidden="true"
class="rc-table-measure-row"
style="height: 0px;"
tabindex="-1"
>
<td
style="padding-top: 0px; padding-bottom: 0px; border-top: 0px; border-bottom: 0px; height: 0px;"
Expand Down Expand Up @@ -1231,6 +1234,7 @@ LoadedCheerio {
aria-hidden="true"
class="rc-table-measure-row"
style="height: 0px;"
tabindex="-1"
>
<td
style="padding-top: 0px; padding-bottom: 0px; border-top: 0px; border-bottom: 0px; height: 0px;"
Expand Down Expand Up @@ -1419,6 +1423,7 @@ LoadedCheerio {
aria-hidden="true"
class="rc-table-measure-row"
style="height: 0px;"
tabindex="-1"
>
<td
style="padding-top: 0px; padding-bottom: 0px; border-top: 0px; border-bottom: 0px; height: 0px;"
Expand Down
8 changes: 8 additions & 0 deletions tests/__snapshots__/FixedColumn.spec.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ LoadedCheerio {
aria-hidden="true"
class="rc-table-measure-row"
style="height: 0px;"
tabindex="-1"
>
<td
style="padding-top: 0px; padding-bottom: 0px; border-top: 0px; border-bottom: 0px; height: 0px;"
Expand Down Expand Up @@ -948,6 +949,7 @@ LoadedCheerio {
aria-hidden="true"
class="rc-table-measure-row"
style="height: 0px;"
tabindex="-1"
>
<td
style="padding-top: 0px; padding-bottom: 0px; border-top: 0px; border-bottom: 0px; height: 0px;"
Expand Down Expand Up @@ -1767,6 +1769,7 @@ LoadedCheerio {
aria-hidden="true"
class="rc-table-measure-row"
style="height: 0px;"
tabindex="-1"
>
<td
style="padding-top: 0px; padding-bottom: 0px; border-top: 0px; border-bottom: 0px; height: 0px;"
Expand Down Expand Up @@ -2110,6 +2113,7 @@ LoadedCheerio {
aria-hidden="true"
class="rc-table-measure-row"
style="height: 0px;"
tabindex="-1"
>
<td
style="padding-top: 0px; padding-bottom: 0px; border-top: 0px; border-bottom: 0px; height: 0px;"
Expand Down Expand Up @@ -2962,6 +2966,7 @@ LoadedCheerio {
aria-hidden="true"
class="rc-table-measure-row"
style="height: 0px;"
tabindex="-1"
>
<td
style="padding-top: 0px; padding-bottom: 0px; border-top: 0px; border-bottom: 0px; height: 0px;"
Expand Down Expand Up @@ -3207,6 +3212,7 @@ exports[`Table.FixedColumn > shadow should be shown when there are columns where
aria-hidden="true"
class="rc-table-measure-row"
style="height: 0px;"
tabindex="-1"
>
<td
style="padding-top: 0px; padding-bottom: 0px; border-top: 0px; border-bottom: 0px; height: 0px;"
Expand Down Expand Up @@ -5757,6 +5763,7 @@ exports[`Table.FixedColumn > shadow should display correctly 1`] = `
aria-hidden="true"
class="rc-table-measure-row"
style="height: 0px;"
tabindex="-1"
>
<td
style="padding-top: 0px; padding-bottom: 0px; border-top: 0px; border-bottom: 0px; height: 0px;"
Expand Down Expand Up @@ -11749,6 +11756,7 @@ exports[`Table.FixedColumn > shadow should display correctly 2`] = `
aria-hidden="true"
class="rc-table-measure-row"
style="height: 0px;"
tabindex="-1"
>
<td
style="padding-top: 0px; padding-bottom: 0px; border-top: 0px; border-bottom: 0px; height: 0px;"
Expand Down
1 change: 1 addition & 0 deletions tests/__snapshots__/Table.spec.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ LoadedCheerio {
aria-hidden="true"
class="rc-table-measure-row"
style="height: 0px;"
tabindex="-1"
>
<td
style="padding-top: 0px; padding-bottom: 0px; border-top: 0px; border-bottom: 0px; height: 0px;"
Expand Down