From 58b2ef4825b485e2b406ba69dbe30a1a8f03501a Mon Sep 17 00:00:00 2001 From: haoziqaq <357229046@qq.com> Date: Sun, 2 Apr 2023 03:18:00 +0800 Subject: [PATCH] fix(ui/hover): fix and close #942 --- packages/varlet-ui/src/hover/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/varlet-ui/src/hover/index.ts b/packages/varlet-ui/src/hover/index.ts index e4f8dfe4325..91cb0cbe655 100644 --- a/packages/varlet-ui/src/hover/index.ts +++ b/packages/varlet-ui/src/hover/index.ts @@ -140,6 +140,11 @@ function unmounted(element: HoverHTMLElement, binding: DirectiveBinding) { + if (!element._hover) { + // issue #942 + return + } + unmounted(element, binding) }