angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.33k stars 6.73k forks source link

MatDialog does not display content in FF, Chrome, Opera #8601

Closed AbakumovAlexandr closed 6 years ago

AbakumovAlexandr commented 6 years ago

Bug, feature request, or proposal:

Bug.

What is the expected behavior?

MatDialog should show content in any browser.

What is the current behavior?

MatDialog does NOT display content in FF, Chrome, Opera, but display it in Edge and Safari.

What are the steps to reproduce?

Please check out a StackBlitz in various browsers.

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

Angular 5.0.2, Material 5 RC1.

jelbourn commented 6 years ago

You used the selector dialog for your content. This is being treated as a native <dialog> element in those browsers and is hidden unless it has the open attribute set.

You should use a custom element name with a dash like pizza-dialog for your selector.

angular-automatic-lock-bot[bot] commented 5 years ago

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.