Skip to content

Commit

Permalink
reactor(Modal): 优化 Modal.show 代码 (#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuilanxin committed Apr 8, 2022
1 parent 4e89936 commit eca761a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-modal/src/CallShow.tsx
Expand Up @@ -13,11 +13,11 @@ export default function CallShow(props: Omit<ModalProps, 'onClosed' | 'isOpen'>
title={title}
isOpen={true}
onClosed={() => {
document.getElementById('uiw-modal-call-show-element')!.remove();
dv.remove();
}}
>
{children}
</Modal>,
document.getElementById('uiw-modal-call-show-element'),
dv,
);
}

0 comments on commit eca761a

Please sign in to comment.