We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99a26a6 commit dd62835Copy full SHA for dd62835
1 file changed
packages/core/src/components/Table/Body/Row/Row.tsx
@@ -118,6 +118,11 @@ export const Row: FC<RowProps> = memo(props => {
118
if (isNavigated) onRowNavigated && onRowNavigated(data);
119
}, [isNavigated, onRowNavigated]);
120
121
+ const defaultRowExpansion = defaultRowExpandKey && data[defaultRowExpandKey];
122
+ useEffect(() => {
123
+ setExpansionState(defaultRowExpansion);
124
+ }, [defaultRowExpansion]);
125
+
126
// TODO: Check why useKeypress is not working in this case
127
const handleRowClickFromKeyboard = useCallback(
128
(e: KeyboardEvent<HTMLTableRowElement>) => {
0 commit comments