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