Skip to content

Commit

Permalink
feat(submenu): enable props popup-props (#3145)
Browse files Browse the repository at this point in the history
* feat(submenu): enable props popup-props

* fix(submenu): setting popup-props placement property is invalid
  • Loading branch information
betavs authored and uyarn committed Apr 26, 2024
1 parent 7bf9c71 commit 44e2deb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/menu/submenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,11 @@ export default defineComponent({
);
const realPopup = (
<Popup
{...((this.popupProps ?? {}) as TdSubmenuProps['popupProps'])}
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 44e2deb

Please sign in to comment.