hasBackdrop: false prevents transparent overlay behind modal
See original GitHub issueBug, feature request, or proposal:
When I set hasBackdrop: false
, the overlay behind modal is not dark and transparent as expected
What is the expected behavior?
I expect the same behavior as hasBackdrop: true
, the overlay behind modal is dark and transparent
What are the steps to reproduce?
https://stackblitz.com/edit/angular-material2-issue-4gl8gc
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 5, @angular/material & @angular/cdk: 5.1.1
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How to close a mat dialog without a backdrop on clicking ...
by clicking outside ? This works fine if I remove the property hasBackdrop: false -> Working Stackblitz Example · angular · angular-material ...
Read more >How To Use Opacity and Transparency to Create a Modal in ...
The disclaimer modal, with the rest of the page visible behind a translucent black background. Now that the overlay is transparent, turn to...
Read more >Help Popup with Angular Material CDK Overlay
When hasBackdrop is true , the overlay has a backdrop element, which is an element rendered beneath the overlay over the complete viewport....
Read more >Overlay | Angular Material
Overlays are dynamically added pieces of floating UI, meant to be used as a low-level building block for other components. Dialogs, tooltips, menus,...
Read more >Modal backdrop: static not allowing clicks without closing t
config: { backdrop: false, ignoreBackdropClick: true, class: 'modal-lg ... and prevents the closing, I am not allowed to interact with the forms behind...
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
Rather than setting
hasBackdrop
to false, I think what you’d like to do is usedisableClose: true
so that the user cannot close the modal via clicking on the backdrop.This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.