diff --git a/apps/admin-x-design-system/src/global/modal/PreviewModal.tsx b/apps/admin-x-design-system/src/global/modal/PreviewModal.tsx index 6be3328391..7b70798cb6 100644 --- a/apps/admin-x-design-system/src/global/modal/PreviewModal.tsx +++ b/apps/admin-x-design-system/src/global/modal/PreviewModal.tsx @@ -265,6 +265,7 @@ export const PreviewModalContent: React.FC = ({ afterClose={afterClose} animate={false} backDropClick={backDropClick} + dirty={dirty} footer={false} height={height} padding={false} diff --git a/apps/admin-x-settings/src/components/settings/site/ThemeModal.tsx b/apps/admin-x-settings/src/components/settings/site/ThemeModal.tsx index 1684e3a925..688f00ec91 100644 --- a/apps/admin-x-settings/src/components/settings/site/ThemeModal.tsx +++ b/apps/admin-x-settings/src/components/settings/site/ThemeModal.tsx @@ -468,6 +468,10 @@ const ChangeThemeModal: React.FC = ({source, themeRef}) = testId='theme-modal' title='' scrolling + onCancel={() => { + modal.remove(); + updateRoute(''); + }} >