How to prevent modal from being closed when pressing anywhere on the screen?
See original GitHub issueWhat package(s) are you using?
-
carbon-components
-
carbon-components-react
Summary
How to prevent closing the modal popup when clicking with the mouse outside the popup screen?
Relevant information
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Disable click outside of bootstrap modal area to close modal
On Options chapter, in the page you linked, you can see the backdrop option. Passing this option with value 'static' will prevent closing...
Read more >How to Prevent Bootstrap Modal from Closing when Clicking ...
How to prevent Bootstrap modal from closing when clicking outside. Topic: Bootstrap / SassPrev|Next. Answer: Use the Modal's backdrop Option.
Read more >Prevent Bootstrap Modal Popup from closing when clicked ...
Here Mudassar Khan has explained with an example, how to prevent Bootstrap Modal Popup from closing when clicked outside.
Read more >Prevent Closing Bootstrap Modal When Clicking Outside
To prevent closing the Bootstrap modal when clicking outside popup, use data-backdrop and data-keyboard attributes in Bootstrap and HTML.
Read more >Disable modal pop-up from closing when clicking outside it
Data-keyword="false" is to prevent closing modal while clicking Esc button, while data-backdrop="static" , allows you keep modal pop-up opened when clicking on ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Opened #4516
As there’s been no activity since this issue was marked as stale, we are auto-closing it.