When parent dialog is closed, its inner dialog useEffect would call its clean-up function and set overflow to hidden.
Now if body already has overflow: hidden (possibly from parent dialog), dialog will do nothing with the overflow.
Checklist
[x] Add meaningful unit tests for your component (verify that all lines are covered)
[x] Verify that all existing tests pass
[x] ~Add component features demo in Storybook (different stories)~
[x] ~Approve test images for new stories~
[x] ~Add screenshots of the key elements of the component~
Closes #748
When parent dialog is closed, its inner dialog
useEffect
would call its clean-up function and set overflow to hidden. Now if body already hasoverflow: hidden
(possibly from parent dialog), dialog will do nothing with the overflow.Checklist