Skip to content

Commit

Permalink
fix(modal): ensure document overflow styles are properly restored whe…
Browse files Browse the repository at this point in the history
…n multiple modals are closed/removed (#8390)

**Related Issue:** #6594 

## Summary

We store the initial overflow style to restore it when modal is closed,
which is only correct for the first modal that opens. Subsequent ones
will store the style that the modal applies, so the incorrect overflow
value is applied after all modals are removed in a different order.

This updates modal to store the initial overflow style only for the
first modal that is open. This will ensure the correct initial overflow
style is restored when all modals have been closed.
  • Loading branch information
jcfranco authored Dec 12, 2023
1 parent 22af7af commit f2c6b09
Show file tree
Hide file tree
Showing 2 changed files with 393 additions and 325 deletions.
Loading

0 comments on commit f2c6b09

Please sign in to comment.