Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Popup closes on document click even without closeOnDocumentClick #341

Open
crystalw1ngs opened this issue Oct 14, 2023 · 1 comment
Open

Comments

@crystalw1ngs
Copy link

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.

@benomatis
Copy link
Contributor

You have to explicitly set closeOnDocumentClick to false to solve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants