Merge remote-tracking branch 'parent/main' into kb_migration
This commit is contained in:
commit
ce3cf82f8f
175 changed files with 1951 additions and 826 deletions
|
@ -99,14 +99,7 @@ export default class ModalRoot extends PureComponent {
|
|||
|
||||
handleClose = (ignoreFocus = false) => {
|
||||
const { onClose } = this.props;
|
||||
let message = null;
|
||||
try {
|
||||
message = this._modal?.getWrappedInstance?.().getCloseConfirmationMessage?.();
|
||||
} catch (_) {
|
||||
// injectIntl defines `getWrappedInstance` but errors out if `withRef`
|
||||
// isn't set.
|
||||
// This would be much smoother with react-intl 3+ and `forwardRef`.
|
||||
}
|
||||
const message = this._modal?.getCloseConfirmationMessage?.();
|
||||
onClose(message, ignoreFocus);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue