Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix same issue elsewhere

Manav Rathi0466d7024abc
diff --git a/web/packages/base/components/MiniDialog.tsx b/web/packages/base/components/MiniDialog.tsx
index 2ae838f7ee..f3739e849a 100644
--- a/web/packages/base/components/MiniDialog.tsx
+++ b/web/packages/base/components/MiniDialog.tsx
@@ -152,11 +152,6 @@ export const AttributedMiniDialog: React.FC<
},
}}
onClose={handleClose}
- // This is required to prevent console errors about aria-hiding a
- // focused button when the dialog is closed.
- //
- // https://github.com/mui/material-ui/issues/43106#issuecomment-2314809028
- closeAfterTransition={false}
{...rest}
>
{(attributes.icon ?? attributes.title) && (
diff --git a/web/packages/shared/themes/components.ts b/web/packages/shared/themes/components.ts
index d807f02f45..50bc1d71bc 100644
--- a/web/packages/shared/themes/components.ts
+++ b/web/packages/shared/themes/components.ts
@@ -39,6 +39,13 @@ export const getComponents = (
},
},
MuiDialog: {
+ defaultProps: {
+ // This is required to prevent console errors about aria-hiding a
+ // focused button when the dialog is closed.
+ //
+ // https://github.com/mui/material-ui/issues/43106#issuecomment-2314809028
+ closeAfterTransition: false,
+ },
styleOverrides: {
root: {
".MuiBackdrop-root": {