Skip to content

Commit

Permalink
fix(VOverlay): don't closeParents if persistent is set (#19782)
Browse files Browse the repository at this point in the history
fixes #19780

Co-authored-by: nbare <nbare@colsa.com>
  • Loading branch information
noahbare and nbare authored May 14, 2024
1 parent aad15b7 commit aada67a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vuetify/src/components/VMenu/VMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export const VMenu = genericComponent<OverlaySlots>()({
closeParents (e) {
setTimeout(() => {
if (!openChildren.value &&
!props.persistent &&
(e == null || (e && !isClickInsideElement(e, overlay.value!.contentEl!)))
) {
isActive.value = false
Expand Down

0 comments on commit aada67a

Please sign in to comment.