Skip to content

Commit

Permalink
fix(components): [tooltip] not disappear when <keep-alive> change (#8301
Browse files Browse the repository at this point in the history
)

el-tooltip does not disappear when the reference element is in <keep-alive>

closed #8287
  • Loading branch information
BRSunnySunCo committed Jun 21, 2022
1 parent 786360b commit f582165
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/components/tooltip/src/tooltip.vue
Expand Up @@ -51,6 +51,7 @@
import {
computed,
defineComponent,
onDeactivated,
provide,
readonly,
ref,
Expand Down Expand Up @@ -207,6 +208,8 @@ export default defineComponent({
return popperContent && popperContent.contains(document.activeElement)
}
onDeactivated(() => open.value && hide())
return {
compatShowAfter,
compatShowArrow,
Expand Down

0 comments on commit f582165

Please sign in to comment.