We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32c4e06 commit 0a6a67dCopy full SHA for 0a6a67d
src/DialogWrap.tsx
@@ -51,7 +51,7 @@ const DialogWrap: React.FC<IDialogPropTypes> = (props) => {
51
destroyOnHidden={destroyOnHidden}
52
afterClose={() => {
53
const { afterClose: closableAfterClose = undefined } =
54
- typeof closable === 'object' ? closable : {};
+ typeof closable === 'object' && closable !== null ? closable : {};
55
closableAfterClose?.();
56
afterClose?.();
57
setAnimatedVisible(false);
0 commit comments