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 a7473b8 commit 6e3e8a8Copy full SHA for 6e3e8a8
.changeset/hot-terms-tap.md
@@ -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
@@ -39,8 +39,7 @@ export function MenuSection<T>(props: CubeMenuSectionProps<T>) {
39
item={node}
40
styles={itemStyles}
41
state={state}
42
- // @ts-ignore
43
- onAction={node.onAction}
+ onAction={(node as unknown as MenuItemProps<T>).onAction}
44
/>
45
);
46
0 commit comments