Reproduction link
Steps to reproduce
inspect element, first level menu is right in the container, second level menu is injected into child div of body.
What is expected?
all level menu is right placed in custom container
What is actually happening?
dropdown's submenu is not injected into getPopupContainer defined in
| Environment | Info |
| ------------ | ------------ |
| antd | undefined |
| React | ^18.2.0 |
| System | all |
| Browser | all |
2条答案
按热度按时间rslzwgfq1#
try this
Because the triggerElement of SubMenu is not
<a>...</a>
, it's the Menu.Itemh4cxqtbf2#
try this
Because the triggerElement of SubMenu is not
<a>...</a>
, it's the Menu.Itemthanks you, should i close this issue or keep it open to trace this "bug"?