Closed
Description
Summary:
If two or more modals are open and one is closed, ReactModal__Body--open
class is erroneously removed from body element
Steps to reproduce:
- Open a modal M1
- Open a second modal M2
- Close M2. The class
ReactModal__Body--open
will no longer exist onbody
element.
Expected behavior:
The class ReactModal__Body--open
should be active on the body
element as long as there is at least one instance of modal open
Additional notes:
Perhaps we need to keep track of the total number of open modal instances?
react-modal/lib/components/Modal.js
Lines 66 to 73 in 6550b87