From 63c2267ddba48b74d1b43d776370f65f592258e9 Mon Sep 17 00:00:00 2001 From: Li Qiang Date: Mon, 12 Dec 2022 20:12:19 +0800 Subject: [PATCH] fix(ripple): check parent before calling removeChild (#14573) fixes #13457 --- packages/vuetify/src/directives/ripple/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vuetify/src/directives/ripple/index.ts b/packages/vuetify/src/directives/ripple/index.ts index 25dd3c84e90..1833d5b7c4d 100644 --- a/packages/vuetify/src/directives/ripple/index.ts +++ b/packages/vuetify/src/directives/ripple/index.ts @@ -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) },