Skip to content

Hiding a MdDialog #5162

Closed
Closed
@MaximeAnsquer

Description

@MaximeAnsquer

Bug, feature request, or proposal:

Feature request

What is the expected behavior?

Ability to hide the MdDialog and then show it back, with the component inside of it not being changed.

What is the current behavior?

The component can only be closed, and the component inside is destroyed.

What are the steps to reproduce?

Open a dialog, change something inside it, close it, open it back, and see that the change is gone.

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

For example with a form inside a MdDialog, resetting the form when the dialog is closed/hidden is very annoying.

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

Angular 4.2.0-rc.2, Material 2.0.0-beta.6, any OS, any TypeScript version, any Browser

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsfeatureThis issue represents a new feature or feature request rather than a bug or bug fixneeds: discussionFurther discussion with the team is needed before proceeding

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions