Skip to content

Commit 102d6a4

Browse files
committed
fix(VMenu): close on click outside
fixes #20003 closes #21606
1 parent 8a0f58f commit 102d6a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vuetify/src/components/VOverlay/VOverlay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export const VOverlay = genericComponent<OverlaySlots>()({
197197
}
198198

199199
function closeConditional (e: Event) {
200-
return isActive.value && globalTop.value && (
200+
return isActive.value && (
201201
// If using scrim, only close if clicking on it rather than anything opened on top
202202
!props.scrim || e.target === scrimEl.value || (e instanceof MouseEvent && e.shadowTarget === scrimEl.value)
203203
)

0 commit comments

Comments
 (0)