MdDialog - possible to hide instead of closing

58 views Asked by At

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 => {
    // ...
  })
}
1

There are 1 answers

0
alexKhymenko On

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