Skip to content

Commit

Permalink
fix(module:select): move select ovarlay to the last of container (NG-…
Browse files Browse the repository at this point in the history
  • Loading branch information
vthinkxie authored Jun 16, 2018
1 parent e305f1f commit 43bd96d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions components/select/nz-select.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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' ]
});
Expand Down

0 comments on commit 43bd96d

Please sign in to comment.