diff --git a/src/components/Table/components/TTitle/components/ColumnChooser/ColumnChooser.tsx b/src/components/Table/components/TTitle/components/ColumnChooser/ColumnChooser.tsx index 0b0cf05a3..d5de1807c 100644 --- a/src/components/Table/components/TTitle/components/ColumnChooser/ColumnChooser.tsx +++ b/src/components/Table/components/TTitle/components/ColumnChooser/ColumnChooser.tsx @@ -28,6 +28,10 @@ const ColumnChooser: React.FC = ({ columns, columnsConfig }) => { ) ); + const disabledKeys = options + .filter((option) => option.isAlwaysVisible) + .map((option) => option.id); + const btnRef = useRef(null); const handleBtnClick = (e) => { @@ -78,6 +82,7 @@ const ColumnChooser: React.FC = ({ columns, columnsConfig }) => { selectedKeys={selectedKeys} css={[listStyle({}), menuStyle()]} onSelectionChange={handleSelectionChange} + disabledKeys={disabledKeys} > {options.map((col, index) => { const key = col.id;