Skip to content

Commit f2c6b09

Browse files
authored
fix(modal): ensure document overflow styles are properly restored when 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.
1 parent 22af7af commit f2c6b09

File tree

2 files changed

+393
-325
lines changed

2 files changed

+393
-325
lines changed

0 commit comments

Comments
 (0)