diff --git a/packages/react-modal/src/CallShow.tsx b/packages/react-modal/src/CallShow.tsx index a1c1892db3..7608572cb4 100644 --- a/packages/react-modal/src/CallShow.tsx +++ b/packages/react-modal/src/CallShow.tsx @@ -13,11 +13,11 @@ export default function CallShow(props: Omit title={title} isOpen={true} onClosed={() => { - document.getElementById('uiw-modal-call-show-element')!.remove(); + dv.remove(); }} > {children} , - document.getElementById('uiw-modal-call-show-element'), + dv, ); }