File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
api-generator/src/locale/en Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 5
5
"closeOnClick" : " Designates if menu should close on outside-activator click." ,
6
6
"closeOnContentClick" : " Designates if menu should close when its content is clicked." ,
7
7
"closeDelay" : " Milliseconds to wait before closing component. Only works with the **open-on-hover** prop." ,
8
+ "disableInitialFocus" : " Prevents automatic redirect of first `focusin` event. Intended to use on permanently open menus or VSpeedDial." ,
8
9
"disableKeys" : " Removes all keyboard interaction." ,
9
10
"internalActivator" : " Detaches the menu content inside of the component as opposed to the document." ,
10
11
"minWidth" : " Sets the minimum width for the component. Use `auto` to use the activator width." ,
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ export const makeVMenuProps = propsFactory({
48
48
// disableKeys: Boolean,
49
49
id : String ,
50
50
submenu : Boolean ,
51
+ disableInitialFocus : Boolean ,
51
52
52
53
...omit ( makeVOverlayProps ( {
53
54
closeDelay : 250 ,
@@ -133,7 +134,7 @@ export const VMenu = genericComponent<OverlaySlots>()({
133
134
watch ( isActive , val => {
134
135
if ( val ) {
135
136
parent ?. register ( )
136
- if ( IN_BROWSER ) {
137
+ if ( IN_BROWSER && ! props . disableInitialFocus ) {
137
138
document . addEventListener ( 'focusin' , onFocusIn , { once : true } )
138
139
}
139
140
} else {
You can’t perform that action at this time.
0 commit comments