Skip to content

Commit 91c0631

Browse files
committed
update destroyOnClose to destroyOnHidden
1 parent b933645 commit 91c0631

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/DialogWrap.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ const DialogWrap: React.FC<IDialogPropTypes> = (props) => {
5858
);
5959
};
6060

61-
DialogWrap.displayName = 'Dialog';
61+
if (process.env.NODE_ENV !== 'production') {
62+
DialogWrap.displayName = 'Dialog';
63+
}
6264

6365
export default DialogWrap;

0 commit comments

Comments
 (0)