Skip to content

Commit

Permalink
fix: disable transition + backdrop of modals (#2189)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook committed Jun 27, 2023
1 parent 0b21e3f commit b553fa8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/common/TxModalDialog/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type ReactElement } from 'react'
import { Fragment, type ReactElement } from 'react'
import { IconButton } from '@mui/material'
import { Dialog, DialogTitle, type DialogProps } from '@mui/material'
import CloseIcon from '@mui/icons-material/Close'
Expand All @@ -24,7 +24,8 @@ const TxModalDialog = ({
scroll={fullScreen ? 'paper' : 'body'}
className={css.dialog}
onClick={(e) => e.stopPropagation()}
slots={{ backdrop: 'div' }}
TransitionComponent={Fragment}
slots={{ backdrop: Fragment }}
PaperProps={{
className: css.paper,
}}
Expand Down

0 comments on commit b553fa8

Please sign in to comment.