mirror of
https://github.com/ente-io/ente.git
synced 2025-08-14 02:07:33 +00:00
Fix warnings
This commit is contained in:
@@ -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) && (
|
||||
|
Reference in New Issue
Block a user