From 7e14986c2b397ffc80bdafaf98e7a67829774764 Mon Sep 17 00:00:00 2001 From: LightOfHeaven1994 Date: Thu, 28 May 2026 12:51:20 +0200 Subject: [PATCH] fix(useExpandable): avoid showing checkbox on item details --- src/hooks/useExpandable/helpers.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/hooks/useExpandable/helpers.js b/src/hooks/useExpandable/helpers.js index b7f77e0..b463459 100644 --- a/src/hooks/useExpandable/helpers.js +++ b/src/hooks/useExpandable/helpers.js @@ -2,10 +2,14 @@ import React from 'react'; const detailsRowForRule = (item, DetailsComponent, colSpan, runningIndex) => ({ parent: runningIndex() - 1, - props: { - ...item.props, - 'aria-setsize': 0, - }, + props: (() => { + // eslint-disable-next-line @typescript-eslint/no-unused-vars + const { 'aria-level': _ariaLevel, ...detailsRowProps } = item.props || {}; + return { + ...detailsRowProps, + 'aria-setsize': 0, + }; + })(), cells: [ { title: ,