Fix warnings

This commit is contained in:
Manav Rathi
2024-10-10 16:37:08 +05:30
parent 151c50f7af
commit ed17206f51

View File

@@ -127,7 +127,6 @@ export const AttributedMiniDialog: React.FC<
return (
<Dialog
open={open}
onClose={handleClose}
fullWidth
PaperProps={{
...PaperProps,
@@ -136,6 +135,12 @@ export const AttributedMiniDialog: React.FC<
...PaperProps?.sx,
},
}}
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) && (