Skip to content

Commit

Permalink
fix(ui/hover): fix and close #942
Browse files Browse the repository at this point in the history
  • Loading branch information
haoziqaq committed Apr 1, 2023
1 parent 83a049d commit 58b2ef4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/varlet-ui/src/hover/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ function unmounted(element: HoverHTMLElement, binding: DirectiveBinding<HoverVal
}

function beforeUpdate(element: HoverHTMLElement, binding: DirectiveBinding<HoverValue>) {
if (!element._hover) {
// issue #942
return
}

unmounted(element, binding)
}

Expand Down

0 comments on commit 58b2ef4

Please sign in to comment.