From 2c20eccb8dc6071c4fecb01f5ee970be0531442e Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 6 Sep 2025 23:59:16 +0800 Subject: [PATCH 1/3] fix: improve measurerow ally expirerence --- src/Body/MeasureRow.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Body/MeasureRow.tsx b/src/Body/MeasureRow.tsx index f7be5370f..3716bfeb7 100644 --- a/src/Body/MeasureRow.tsx +++ b/src/Body/MeasureRow.tsx @@ -20,7 +20,13 @@ export default function MeasureRow({ const ref = React.useRef(null); return ( - + { if (isVisible(ref.current)) { From e688eba7ed3ffa4cbb05213639baae91b8ee771e Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 7 Sep 2025 00:00:23 +0800 Subject: [PATCH 2/3] test: update snapshot --- tests/__snapshots__/ExpandRow.spec.jsx.snap | 5 +++++ tests/__snapshots__/FixedColumn.spec.tsx.snap | 8 ++++++++ tests/__snapshots__/Table.spec.jsx.snap | 1 + 3 files changed, 14 insertions(+) diff --git a/tests/__snapshots__/ExpandRow.spec.jsx.snap b/tests/__snapshots__/ExpandRow.spec.jsx.snap index 494f6d92d..504761771 100644 --- a/tests/__snapshots__/ExpandRow.spec.jsx.snap +++ b/tests/__snapshots__/ExpandRow.spec.jsx.snap @@ -189,6 +189,7 @@ LoadedCheerio { aria-hidden="true" class="rc-table-measure-row" style="height: 0px;" + tabindex="-1" > shadow should be shown when there are columns where aria-hidden="true" class="rc-table-measure-row" style="height: 0px;" + tabindex="-1" > shadow should display correctly 1`] = ` aria-hidden="true" class="rc-table-measure-row" style="height: 0px;" + tabindex="-1" > shadow should display correctly 2`] = ` aria-hidden="true" class="rc-table-measure-row" style="height: 0px;" + tabindex="-1" > Date: Sun, 7 Sep 2025 00:27:29 +0800 Subject: [PATCH 3/3] Update MeasureRow.tsx --- src/Body/MeasureRow.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Body/MeasureRow.tsx b/src/Body/MeasureRow.tsx index 9b378f77d..b2bfc7bc9 100644 --- a/src/Body/MeasureRow.tsx +++ b/src/Body/MeasureRow.tsx @@ -23,13 +23,13 @@ export default function MeasureRow({ const { measureRowRender } = useContext(TableContext, ['measureRowRender']); const measureRow = ( - + > { if (isVisible(ref.current)) {