Skip to content

Commit

Permalink
fix(submenu): setting popup-props placement property is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
betavs committed Apr 15, 2024
1 parent 965bf19 commit 6a5d644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/menu/submenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
>
<div ref="submenuRef" class={this.submenuClass}>
Expand Down

0 comments on commit 6a5d644

Please sign in to comment.