We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38abdab commit 0e18159Copy full SHA for 0e18159
src/dialog/dialog.service.ts
@@ -143,10 +143,10 @@ export class DialogService {
143
144
if (this.dialogRef) {
145
let elementToFocus = this.dialogRef.instance.dialogConfig["previouslyFocusedElement"];
146
- if (this.dialogRef.instance.dialogConfig.appendInline) {
147
- viewContainer.remove(viewContainer.indexOf(this.dialogRef.hostView));
148
- } else if (this.placeholderService.hasPlaceholderRef()) {
+ if (this.placeholderService.hasPlaceholderRef() && !this.dialogRef.instance.dialogConfig.appendInline) {
149
this.placeholderService.destroyComponent(this.dialogRef);
+ } else {
+ viewContainer.remove(viewContainer.indexOf(this.dialogRef.hostView));
150
}
151
this.dialogRef = null;
152
this.isOpen = false;
0 commit comments