Skip to content

Commit b9d7b9d

Browse files
committed
fix(rnd-dialog): fix the dropdown being covered by other popups
1 parent 912cd86 commit b9d7b9d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

projects/rnd-dialog/src/lib/rnd-dialog-container.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,10 @@ export class RndDialogContainer extends CdkDialogContainer implements OnInit, Af
234234
}
235235

236236
getSortedDialogs() {
237-
return [...this.dialog.openDialogs].sort(
238-
(a, b) => +a.overlayRef.hostElement.style.zIndex - +b.overlayRef.hostElement.style.zIndex
239-
);
237+
return [...this.dialog.openDialogs]
238+
.filter(ref => (ref.containerInstance as any).resizeHandleElements)
239+
.sort(
240+
(a, b) => +a.overlayRef.hostElement.style.zIndex - +b.overlayRef.hostElement.style.zIndex
241+
);
240242
}
241243
}

0 commit comments

Comments
 (0)