You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 78089a5
Browse filesBrowse the repository at this point in the historyBrowse files
fix(ContextMenu): support controlled open state (#2936)
* fix(ContextMenu): support controlled open state
* fix(ContextMenu): anchor programmatic open to trigger
* fix(ContextMenu): reset rejected pointer open state
Copy file name to clipboardExpand all lines: docs/content/meta/ContextMenuRoot.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,12 @@
15
15
'required': false,
16
16
'default': 'true'
17
17
},
18
+
{
19
+
'name': 'open',
20
+
'description': '<p>The controlled open state of the menu. Can be used as <code>v-model:open</code>.</p>\n',
21
+
'type': 'boolean',
22
+
'required': false
23
+
},
18
24
{
19
25
'name': 'pressOpenDelay',
20
26
'description': '<p>The duration from when the trigger is pressed until the menu opens.</p>\n',
@@ -41,6 +47,7 @@
41
47
| --- | --- | --- | --- | --- |
42
48
|`dir`| The reading direction of the combobox when applicable. If omitted, inherits globally from ConfigProvider or assumes LTR (left-to-right) reading mode. |`"ltr" \| "rtl"`| No | - |
43
49
|`modal`| The modality of the dropdown menu. When set to true, interaction with outside elements will be disabled and only menu content will be visible to screen readers. |`boolean`| No |`true`|
50
+
|`open`| The controlled open state of the menu. Can be used as v-model:open. |`boolean`| No | - |
44
51
|`pressOpenDelay`| The duration from when the trigger is pressed until the menu opens. |`number`| No |`700`|
0 commit comments