From d6234307d2f72ff58a5ccd97361b6fb911f11fc8 Mon Sep 17 00:00:00 2001 From: Reson-a <80547665@qq.com> Date: Tue, 10 Dec 2019 14:53:15 +0800 Subject: [PATCH] fix: memory leak of Trigger (#1483) --- components/vc-trigger/Trigger.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/vc-trigger/Trigger.jsx b/components/vc-trigger/Trigger.jsx index a3ada822a..12aa1e609 100644 --- a/components/vc-trigger/Trigger.jsx +++ b/components/vc-trigger/Trigger.jsx @@ -628,7 +628,7 @@ export default { }; } - const trigger = cloneElement(child, newChildProps); + this.trigger = cloneElement(child, newChildProps); return ( { this.renderComponent = renderComponent; - return trigger; + return this.trigger; }} /> );