iTwin / iTwinUI-react

A react component library for iTwinUI.
https://github.com/iTwin/iTwinUI
Other
84 stars 23 forks source link

fix(Dialog): Fixed body overflow handling when there is a dialog inside another dialog #776

Closed bentleyvk closed 2 years ago

bentleyvk commented 2 years ago

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 has overflow: hidden (possibly from parent dialog), dialog will do nothing with the overflow.

Checklist