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

disable clicking outside the modal #185

Closed
jeffbabuyo opened this issue May 8, 2020 · 3 comments
Closed

disable clicking outside the modal #185

jeffbabuyo opened this issue May 8, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request released

Comments

@jeffbabuyo
Copy link

jeffbabuyo commented May 8, 2020

Is there a way to disable the modal from closing when I clicked outside the modal area? Currently, when I click outside the modal area the modal is close.

@AnandChowdhary
Copy link
Member

Thanks for opening this issue, @jeffbabuyo. No, there isn't a way to prevent closing the modal when you click outside, but I can add this feature for you.

@AnandChowdhary AnandChowdhary self-assigned this May 8, 2020
@AnandChowdhary AnandChowdhary added the enhancement New feature or request label May 8, 2020
@github-actions
Copy link

github-actions bot commented May 8, 2020

🎉 This issue has been resolved in version 3.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@AnandChowdhary
Copy link
Member

You can now add the key disableModalClickClose when configuring Uppload:

const image = new Uppload({
  // your settings,
  disableModalClickClose: true
})

This will make sure the "close" button on the top right closes the modal, not clicking anywhere on the modal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Development

No branches or pull requests

2 participants