reactjs-popup
reactjs-popup copied to clipboard
Popup closes on document click even without closeOnDocumentClick
Version
2.0.5
Expected Behavior
I have a Popup set up like this:
<Popup open={showBidConfirm} onClose={closeModal2}>
...
</Popup>
When I click outside of the popup, it closes, despite not having the closeOnDocumentClick property.
Actual Behavior
The popup closes on document click even without having the closeOnDocumentClick property.
You have to explicitly set closeOnDocumentClick
to false to solve this.