From: underfin <2218301630@qq.com> Date: Thu, 25 Jun 2020 14:58:31 +0000 (+0800) Subject: fix(v-show): fix v-show unmount with falsy value (#1403) X-Git-Tag: v3.0.0-beta.16~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7beea015bdb208d89a2352a5d43cc1913f87337;p=thirdparty%2Fvuejs%2Fcore.git fix(v-show): fix v-show unmount with falsy value (#1403) fix #1401 --- diff --git a/packages/runtime-dom/src/directives/vShow.ts b/packages/runtime-dom/src/directives/vShow.ts index 2b1d9caef0..d9bf3af548 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) } }