mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-25 19:54:31 +08:00
fix: improve the display of modal and drawer on mobile (#4237)
This commit is contained in:
3
packages/utils/src/helpers/get-popup-container.ts
Normal file
3
packages/utils/src/helpers/get-popup-container.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export function getPopupContainer(node?: HTMLElement): HTMLElement {
|
||||
return (node?.parentNode as HTMLElement) ?? document.body;
|
||||
}
|
||||
Reference in New Issue
Block a user