Skip to content

Commit 6e3e8a8

Browse files
committed
fix(MenuSection): remove ts-ignore
1 parent a7473b8 commit 6e3e8a8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changeset/hot-terms-tap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@cube-dev/ui-kit': minor
3+
---
4+
5+
Change MenuItem API to support isDisabled and onAction props.

src/components/pickers/Menu/MenuSection.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ export function MenuSection<T>(props: CubeMenuSectionProps<T>) {
3939
item={node}
4040
styles={itemStyles}
4141
state={state}
42-
// @ts-ignore
43-
onAction={node.onAction}
42+
onAction={(node as unknown as MenuItemProps<T>).onAction}
4443
/>
4544
);
4645

0 commit comments

Comments
 (0)