Skip to content

Commit ed6cdc8

Browse files
committed
another fix: keep hover menus, apply to globalTop
fixes #21015
1 parent 0030e5d commit ed6cdc8

File tree

1 file changed

+3
-3
lines changed
  • packages/vuetify/src/components/VMenu

1 file changed

+3
-3
lines changed

packages/vuetify/src/components/VMenu/VMenu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,15 +129,15 @@ export const VMenu = genericComponent<OverlaySlots>()({
129129
isActive.value &&
130130
before !== after &&
131131
overlay.value?.contentEl &&
132-
// We're the topmost menu
133-
overlay.value?.globalTop &&
134132
// It isn't the document or the menu body
135133
![document, overlay.value.contentEl].includes(after!) &&
136134
// It isn't inside the menu body
137135
!overlay.value.contentEl.contains(after)
138136
) {
139137
if (focusTrapSuppressed) {
140-
isActive.value = false
138+
if (!props.openOnHover) {
139+
isActive.value = false
140+
}
141141
} else {
142142
const focusable = focusableChildren(overlay.value.contentEl)
143143
focusable[0]?.focus()

0 commit comments

Comments
 (0)