Skip to content

Commit

Permalink
Fixed #3063 - ConfirmDialog: mismatch in new version
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Jul 15, 2022
1 parent 5c82a32 commit 108dc54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/confirmdialog/ConfirmDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -153,7 +153,7 @@ ConfirmDialog.displayName = 'ConfirmDialog';
ConfirmDialog.defaultProps = {
__TYPE: 'ConfirmDialog',
tagKey: undefined,
visible: false,
visible: undefined,
message: null,
rejectLabel: null,
acceptLabel: null,
Expand Down

0 comments on commit 108dc54

Please sign in to comment.