Skip to content

Commit df96de0

Browse files
KaelWDjohnleider
authored andcommitted
fix(VMenu): ignore elements with 0 or NaN z-index (#7532)
fixes #5351
1 parent db94b73 commit df96de0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/vuetify/src/util/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export function getZIndex (el?: Element | null): number {
251251

252252
const index = +window.getComputedStyle(el).getPropertyValue('z-index')
253253

254-
if (isNaN(index)) return getZIndex(el.parentNode as Element)
254+
if (!index) return getZIndex(el.parentNode as Element)
255255
return index
256256
}
257257

0 commit comments

Comments
 (0)