Skip to content

Commit 714bcac

Browse files
committed
Update to allow setting keepMounted from server
1 parent 5e2b434 commit 714bcac

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

plugins/ui/src/js/src/elements/TabPanels.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@ import {
55
} from '@deephaven/components';
66

77
export function TabPanels(props: DHCTabPanelsProps<object>): JSX.Element {
8-
const { UNSAFE_style: unsafeStyle, ...otherProps } = props;
8+
const {
9+
UNSAFE_style: unsafeStyle,
10+
keepMounted = true,
11+
...otherProps
12+
} = props;
913

1014
return (
1115
<DHCTabPanels
1216
// eslint-disable-next-line react/jsx-props-no-spreading
1317
{...otherProps}
18+
keepMounted={keepMounted}
1419
UNSAFE_style={{ display: 'flex', ...unsafeStyle }}
15-
keepMounted
1620
/>
1721
);
1822
}

0 commit comments

Comments
 (0)