Skip to content

Commit

Permalink
fix(ripple): check parent before calling removeChild (#14573)
Browse files Browse the repository at this point in the history
fixes #13457
  • Loading branch information
qngl committed Dec 12, 2022
1 parent 17dd133 commit 63c2267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vuetify/src/directives/ripple/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ const ripples = {
delete el.dataset.previousPosition
}

animation.parentNode && el.removeChild(animation.parentNode)
if (animation.parentNode?.parentNode === el) el.removeChild(animation.parentNode)
}, 300)
}, delay)
},
Expand Down

0 comments on commit 63c2267

Please sign in to comment.