Skip to content

Commit

Permalink
fix: fix v-show unmount
Browse files Browse the repository at this point in the history
  • Loading branch information
underfin committed Jun 19, 2020
1 parent ba2a4e1 commit e702aae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/runtime-dom/src/directives/vShow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export const vShow: ObjectDirective<VShowElement> = {
setDisplay(el, value)
}
},
beforeUnmount(el) {
setDisplay(el, true)
beforeUnmount(el, { value }) {
setDisplay(el, value)
}
}

Expand Down

0 comments on commit e702aae

Please sign in to comment.