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 authored 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
Original file line number Diff line number Diff line change
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.