Disable hide column option in header cell context menu for sticky column

This commit is contained in:
Andrew Kingston 2023-05-16 15:26:20 +01:00
parent d4478e0332
commit b112995fd0
1 changed files with 5 additions and 1 deletions

View File

@ -196,7 +196,11 @@
<MenuItem disabled={!canMoveRight} icon="ChevronRight" on:click={moveRight}>
Move right
</MenuItem>
<MenuItem icon="VisibilityOff" on:click={hideColumn}>Hide column</MenuItem>
<MenuItem
disabled={idx === "sticky"}
icon="VisibilityOff"
on:click={hideColumn}>Hide column</MenuItem
>
</Menu>
</Popover>