From 137d3d5701a7bf2b7ae39c2dad2d8eebe2e944c0 Mon Sep 17 00:00:00 2001 From: Wilson Zeng Date: Thu, 17 May 2018 14:13:08 +0800 Subject: [PATCH] fix(module:message): increase the overlay's zindex tobe the same with the inner original zindex style close #1457 --- components/message/nz-message.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/message/nz-message.service.ts b/components/message/nz-message.service.ts index e3a75ec15c8..394c80f91df 100644 --- a/components/message/nz-message.service.ts +++ b/components/message/nz-message.service.ts @@ -60,7 +60,9 @@ export class NzMessageBaseService).rootNodes[0] as HTMLElement); + const overlayPane = this.overlay.create().overlayElement; + overlayPane.style.zIndex = '1010'; // Patching: assign the same zIndex of ant-message to it's parent overlay panel, to the ant-message's zindex work. + overlayPane.appendChild((componentRef.hostView as EmbeddedViewRef<{}>).rootNodes[0] as HTMLElement); return componentRef.instance; }