From 108dc5438879c08f960f50166bfc7103e015869a Mon Sep 17 00:00:00 2001 From: mertsincan Date: Sat, 16 Jul 2022 00:43:49 +0100 Subject: [PATCH] Fixed #3063 - ConfirmDialog: mismatch in new version --- components/lib/confirmdialog/ConfirmDialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/confirmdialog/ConfirmDialog.js b/components/lib/confirmdialog/ConfirmDialog.js index 57aa2713a4..95f6dfa13c 100644 --- a/components/lib/confirmdialog/ConfirmDialog.js +++ b/components/lib/confirmdialog/ConfirmDialog.js @@ -72,7 +72,7 @@ export const ConfirmDialog = React.memo(React.forwardRef((props, ref) => { React.useEffect(() => { props.visible ? show() : hide(); // eslint-disable-next-line react-hooks/exhaustive-deps - }, [props.visible]); + }, [props.visible]); React.useEffect(() => { if (!props.target && !props.message) { @@ -153,7 +153,7 @@ ConfirmDialog.displayName = 'ConfirmDialog'; ConfirmDialog.defaultProps = { __TYPE: 'ConfirmDialog', tagKey: undefined, - visible: false, + visible: undefined, message: null, rejectLabel: null, acceptLabel: null,