From 6a5d64447ba095586ed7abc99042581071ac6b4b Mon Sep 17 00:00:00 2001 From: betavs Date: Mon, 15 Apr 2024 12:39:28 +0800 Subject: [PATCH] fix(submenu): setting popup-props placement property is invalid --- src/menu/submenu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/menu/submenu.tsx b/src/menu/submenu.tsx index 988c90d35..21075876a 100644 --- a/src/menu/submenu.tsx +++ b/src/menu/submenu.tsx @@ -267,7 +267,7 @@ export default defineComponent({ overlayInnerClassName={[...this.overlayInnerClassName]} overlayClassName={[...this.overlayClassName]} visible={this.popupVisible} - placement={placement as PopupPlacement} + placement={(this.popupProps as TdSubmenuProps['popupProps'])?.placement ?? (placement as PopupPlacement)} content={() => popupWrapper} >