Skip to content

Commit

Permalink
fix(VMenu): null check content in mouseleave handler
Browse files Browse the repository at this point in the history
fixes #14619
  • Loading branch information
KaelWD committed Jan 17, 2022
1 parent 9e2edf3 commit e13eee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuetify/src/components/VMenu/VMenu.ts
Expand Up @@ -399,7 +399,7 @@ export default baseMixins.extend({
mouseLeaveHandler (e: MouseEvent) {
// Prevent accidental re-activation
this.runDelay('close', () => {
if (this.$refs.content.contains(e.relatedTarget as HTMLElement)) return
if (this.$refs.content?.contains(e.relatedTarget as HTMLElement)) return

requestAnimationFrame(() => {
this.isActive = false
Expand Down

0 comments on commit e13eee1

Please sign in to comment.