Skip to content

Commit

Permalink
fix(v-show): fix v-show unmount with falsy value (#1403)
Browse files Browse the repository at this point in the history
fix #1401
  • Loading branch information
underfin committed Jun 25, 2020
1 parent 3f3b473 commit d7beea0
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 d7beea0

Please sign in to comment.