From f9e6217bc99a43fdbc27cd79de23f98265fc6e27 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Fri, 18 Jun 2021 17:12:57 +0800 Subject: [PATCH] fix: dropdown submenu error #4205 --- components/vc-align/Align.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/vc-align/Align.tsx b/components/vc-align/Align.tsx index 7a3b5c4cf..85173fa13 100644 --- a/components/vc-align/Align.tsx +++ b/components/vc-align/Align.tsx @@ -196,7 +196,7 @@ export default defineComponent({ return () => { const child = slots?.default(); if (child) { - return cloneElement(child[0], { ref: nodeRef }); + return cloneElement(child[0], { ref: nodeRef }, true, true); } return child && child[0]; };