Skip to content

Commit

Permalink
Modal body blur fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikMatiasko committed Aug 3, 2024
1 parent ffec079 commit 597258a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Atomic/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,14 @@ export const Modal: FC<Props> = memo((props) => {
if (appRoot && show) {
// @ts-ignore
appRoot.style.filter = `blur(${show ? 6 : 0}px)`
// @ts-ignore
appRoot.style.overflow = `hidden`

return () => {
// @ts-ignore
appRoot.style.filter = `none`
// @ts-ignore
appRoot.style.overflow = 'unset'
}
}
}, [show, appRoot])
Expand Down

0 comments on commit 597258a

Please sign in to comment.