File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,6 @@ export const VMenu = genericComponent<OverlaySlots>()({
127
127
await nextTick ( )
128
128
129
129
if (
130
- ! focusTrapSuppressed &&
131
130
isActive . value &&
132
131
before !== after &&
133
132
overlay . value ?. contentEl &&
@@ -138,10 +137,14 @@ export const VMenu = genericComponent<OverlaySlots>()({
138
137
// It isn't inside the menu body
139
138
! overlay . value . contentEl . contains ( after )
140
139
) {
141
- const focusable = focusableChildren ( overlay . value . contentEl )
142
- focusable [ 0 ] ?. focus ( )
140
+ if ( focusTrapSuppressed ) {
141
+ isActive . value = false
142
+ } else {
143
+ const focusable = focusableChildren ( overlay . value . contentEl )
144
+ focusable [ 0 ] ?. focus ( )
143
145
144
- document . removeEventListener ( 'pointerdown' , onPointerdown )
146
+ document . removeEventListener ( 'pointerdown' , onPointerdown )
147
+ }
145
148
}
146
149
}
147
150
You can’t perform that action at this time.
0 commit comments