docs: Optimize demo (#41423)

This commit is contained in:
JiaQi 2023-03-24 13:47:21 +08:00 committed by GitHub
parent a41fba22c5
commit 5d514fe1ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -5079,6 +5079,9 @@ Array [
</ul>
</div>
</div>
<div
style="position: absolute; top: 0px; left: 0px; width: 100%;"
/>
</li>
<li
class="ant-menu-item ant-menu-item-only-child"

View File

@ -63,6 +63,7 @@ const App: React.FC = () => {
mode="vertical"
theme="dark"
items={items}
getPopupContainer={(node) => node.parentNode as HTMLElement}
/>
</>
);