Closed AlmazHecker closed 7 months ago
here's the fix
export const antdModal = ( modal: NiceModalHandler, ): { open: boolean; onCancel: () => void; onOk: () => void; afterClose: () => void } => { return { open: modal.visible, onOk: () => modal.hide(), onCancel: () => modal.hide(), afterClose: () => { // Need to resolve before remove modal.resolveHide(); if (!modal.keepMounted) modal.remove(); }, }; };
For antd v5, use andV5 helper. We need to be compatible with antd v4.
andV5
here's the fix