question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature request] MatDialog config option to disable scroll-blocking

See original GitHub issue

Bug, feature request, or proposal:

Feature request

What is the expected behavior?

A config option to disable the scroll-blocking behavior of a dialog (so that the underlaying page could be used as without the dialog)

What is the current behavior?

There’s an option to disable to backdrop hasBackdrop but the underlaying site still isn’t scrollable (but clickable though)

What is the use-case or motivation for changing an existing behavior?

With this feature it would be possible to “pin” a dialog like gmails compose-email window.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

11reactions
crisbetocommented, Mar 7, 2018

You can pass it in as an option when you open the dialog @Adrian1907:

constructor(public dialog: MatDialog, overlay: Overlay) {
    dialog.open(JazzDialog, {
      scrollStrategy: overlay.scrollStrategies.noop()
    });
  }
0reactions
angular-automatic-lock-bot[bot]commented, Sep 9, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to prevent scrolling down in Angular material dialog?
By default, a MatDialog will set focus to the first focusable component in the dialog, which ends up being your button below your...
Read more >
How to Prevent closing of modal Dialog in Angular Dialog ...
You can prevent closing of modal dialog by setting the beforeClose event argument cancel value to true. In the following sample, the dialog...
Read more >
Angular Overlay Service - Scroll Strategies - Infragistics
Block - the event is canceled and the component does not scroll with the window. Close - uses a tolerance and closes an...
Read more >
Angular 5/Material, How To Remove Vertical Scroll In Mat Dialog
About blocking background from scrolling This feature is A config option to disable the scroll-blocking behavior of a dialog so that the Bug,...
Read more >
Changelog of ngx-extended-pdf-viewer - PdfShowcase
1.2.0 #127 add an option for setting the print resolution; #126 bugfix (forgotten ... 1.7.1 #143 Prevent Angular Material's MatDialog messing up printing....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found