We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb3cb71 commit 20140feCopy full SHA for 20140fe
docs/reference/generated/menu-root.json
@@ -12,7 +12,7 @@
12
"description": "Whether the menu is currently open."
13
},
14
"onOpenChange": {
15
- "type": "((open: boolean, event: Event | undefined, reason: {} | undefined) => void)",
+ "type": "(open: boolean, event?: Event, reason?: Menu.Root.OpenChangeReason) => void",
16
"description": "Event handler called when the menu is opened or closed."
17
18
"actionsRef": {
packages/react/src/menu/root/MenuRoot.tsx
@@ -109,6 +109,7 @@ export namespace MenuRoot {
109
modal?: boolean;
110
/**
111
* Event handler called when the menu is opened or closed.
112
+ * @type (open: boolean, event?: Event, reason?: Menu.Root.OpenChangeReason) => void
113
*/
114
onOpenChange?: (
115
open: boolean,
0 commit comments