components icon indicating copy to clipboard operation
components copied to clipboard

.cdk-overlay-container prevents scrolling of dialog with long content

Open sashanana opened this issue 9 years ago • 3 comments

Bug, feature request, or proposal:

Not sure if it's a bug or just a misunderstanding of the use case

What is the expected behavior?

Content of dialog is scroll able or enable window scroll for long content.

What is the current behavior?

.cdk-overlay-container has pointer-events none that block scroll event and the .cdk-overlay-container remain in after dialog closed.

What are the steps to reproduce?

Providing a Plunker (or similar) is the best way to get the team to see your issue. Plunker template: https://goo.gl/DlHd6U

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

Based on Basic dialog example

https://plnkr.co/edit/O9r1GdiNkq9MhTQSCQiy?p=preview

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Most of the modern browsers

Is there anything else we should know?

sashanana avatar Jun 07 '17 13:06 sashanana

@sashanana Try wrapping the content of the dialog in <md-dialog-content></md-dialog-content> tags :)

LilSebastian5000 avatar Jun 07 '17 14:06 LilSebastian5000

It sounds like you're looking for md-dialog-content https://material.angular.io/components/component/dialog

jelbourn avatar Jun 07 '17 15:06 jelbourn

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.