Skip to content

Commit

Permalink
fix:ConfirmDialog:confirmDialog method in unstyled mode, the pop-up w…
Browse files Browse the repository at this point in the history
…indow style not apply (#5658)
  • Loading branch information
kl-nevermore authored and nitrogenous committed Jan 4, 2024
1 parent a84829d commit 8125c64
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 = () => confirmProps.current || props;
const getPropValue = (key) => (confirmProps.current || props)[key];
const getCurrentProps = () => Object.assign(props, confirmProps.current);
const getPropValue = (key) => Object.assign(props, confirmProps.current)[key];
const callbackFromProp = (key, ...param) => ObjectUtils.getPropValue(getPropValue(key), param);

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

0 comments on commit 8125c64

Please sign in to comment.