KarolDepka
KarolDepka

Reputation: 8628

MdDialog - possible to hide instead of closing

I would like to hide my MdDialog instead of closing it (to not have to re-create costly resource every time)

Is it possible to just hide it?

This is how I open it:

 openLocationPicker() {
  const dialogParams: UserPickLocationDialogParams = {
    locationName: this.locationName,
    geoLocationString: this.latitudeLongitudeControl.nativeElement.value
  }
  let dialogRef = this.dialog.open(UserPickLocationComponent, {
    height: '470px',
    width: '600px',
    data: dialogParams
  }).afterClosed().subscribe(returnVal => {
    // ...
  })
}

Upvotes: 1

Views: 52

Answers (1)

alexKhymenko
alexKhymenko

Reputation: 5598

Right now, it's not possible. Please look at this GitHub issue.

Upvotes: 1

Related Questions