fix: unable to set destroyOnClose on ModalTrigger (#20201)

This commit is contained in:
Yongjie Zhao 2022-05-26 22:27:12 +08:00 committed by GitHub
parent 64c4226817
commit e140b7aa87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ const CustomModal = ({
mask={shouldShowMask}
draggable={draggable}
resizable={resizable}
destroyOnClose={destroyOnClose || resizable || draggable}
destroyOnClose={destroyOnClose}
{...rest}
>
{children}