Skip to content

Commit

Permalink
Fix intermittent issue of Dialog not closing sometimes
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeshanTamboli committed Aug 8, 2024
1 parent f772c5d commit ba2e45c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions docs/data/material/components/material-icons/SearchIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,11 +610,14 @@ export default function SearchIcons() {
itemContent={Icon(handleOpenClick)}
/>
</Grid>
<DialogDetails
open={!!selectedIcon}
selectedIcon={dialogSelectedIcon}
handleClose={handleClose}
/>
{/* Temporary fix for Dialog not closing sometimes and Backdrop stuck at opacity 0 (see issue https://github.com/mui/material-ui/issues/32286). */}
{selectedIcon ? (
<DialogDetails
open={!!selectedIcon}
selectedIcon={dialogSelectedIcon}
handleClose={handleClose}
/>
) : null}
</Grid>
);
}

0 comments on commit ba2e45c

Please sign in to comment.