diff --git a/packages/runtime-dom/src/directives/vShow.ts b/packages/runtime-dom/src/directives/vShow.ts index 2b1d9caef04..d9bf3af5487 100644 --- a/packages/runtime-dom/src/directives/vShow.ts +++ b/packages/runtime-dom/src/directives/vShow.ts @@ -35,8 +35,8 @@ export const vShow: ObjectDirective = { setDisplay(el, value) } }, - beforeUnmount(el) { - setDisplay(el, true) + beforeUnmount(el, { value }) { + setDisplay(el, value) } }