From 442e3f3b45beebcca2ce1ca0a6101f559148aa00 Mon Sep 17 00:00:00 2001 From: VTHINKXIE Date: Sat, 16 Jun 2018 21:39:57 +0800 Subject: [PATCH] fix(module:select): move select ovarlay to the last of container (#1673) close #1672 close #1643 --- components/select/nz-select.component.ts | 5 +++++ .../_site/src/app/share/nz-codebox/nz-codebox.component.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/components/select/nz-select.component.ts b/components/select/nz-select.component.ts index 4422092dd65..cf3f062fd11 100644 --- a/components/select/nz-select.component.ts +++ b/components/select/nz-select.component.ts @@ -190,6 +190,11 @@ export class NzSelectComponent implements ControlValueAccessor, OnInit, AfterVie } if (this.cdkConnectedOverlay && this.cdkConnectedOverlay.overlayRef) { this.cdkConnectedOverlay.overlayRef.updatePosition(); + const backdropElement = this.cdkConnectedOverlay.overlayRef.backdropElement; + const parentNode = this.renderer.parentNode(backdropElement); + const hostElement = this.cdkConnectedOverlay.overlayRef.hostElement; + this.renderer.appendChild(parentNode, backdropElement); + this.renderer.appendChild(parentNode, hostElement); } } else { if (this.nzSelectTopControlComponent) { diff --git a/site_scripts/_site/src/app/share/nz-codebox/nz-codebox.component.ts b/site_scripts/_site/src/app/share/nz-codebox/nz-codebox.component.ts index ae4e586e96b..2732e4baef7 100644 --- a/site_scripts/_site/src/app/share/nz-codebox/nz-codebox.component.ts +++ b/site_scripts/_site/src/app/share/nz-codebox/nz-codebox.component.ts @@ -393,7 +393,7 @@ export class AppModule { } '@angular/router' : '^6.0.0', '@angular/animations' : '^6.0.0', 'date-fns' : '^1.29.0', - 'ng-zorro-antd' : '1.0.0-rc.0' + 'ng-zorro-antd' : '1.0.0' }, tags : [ 'stackblitz', 'sdk' ] });