Skip to content

Commit

Permalink
Fix #5697: Revert ConfirmDialog fix (#5698)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Jan 5, 2024
1 parent 3afafe7 commit 2874e8a
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 @@ -33,8 +33,8 @@ export const ConfirmDialog = React.memo(
const confirmProps = React.useRef(null);
const isCallbackExecuting = React.useRef(false);
const focusElementOnHide = React.useRef(null);
const getCurrentProps = () => Object.assign(props, confirmProps.current);
const getPropValue = (key) => Object.assign(props, confirmProps.current)[key];
const getCurrentProps = () => confirmProps.current || props;
const getPropValue = (key) => (confirmProps.current || props)[key];
const callbackFromProp = (key, ...param) => ObjectUtils.getPropValue(getPropValue(key), param);

const acceptLabel = getPropValue('acceptLabel') || localeOption('accept');
Expand Down

0 comments on commit 2874e8a

Please sign in to comment.