Skip to content

Commit

Permalink
fix(module:select): move select ovarlay to the last of container (#1673)
Browse files Browse the repository at this point in the history
close #1672 close #1643
  • Loading branch information
vthinkxie authored Jun 16, 2018
1 parent 6b31ca3 commit 442e3f3
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 442e3f3

Please sign in to comment.