Skip to content

Commit 032df3c

Browse files
Update src/dialog/dialog.service.ts
Co-Authored-By: cal-smith <[email protected]>
1 parent 16d614e commit 032df3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dialog/dialog.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class DialogService {
106106
if (dialogConfig.appendInline) {
107107
// add our component to the view
108108
this.dialogRef = viewContainer.createComponent(this.componentFactory, 0, this.injector);
109-
} else if (this.placeholderService.hasPlaceholderRef()) {
109+
} else if (!this.placeholderService.hasPlaceholderRef()) {
110110
this.dialogRef = viewContainer.createComponent(this.componentFactory, 0, this.injector);
111111
setTimeout(() => {
112112
window.document.querySelector("body").appendChild(this.dialogRef.location.nativeElement);

0 commit comments

Comments
 (0)