You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @kjklhr ,
I checked your sample, considering the way nz-tab works, such behavour is expected.
To avoid such a problem, I suggest you:
1- set a classname to your modal via nzClassName, because later you will use ::ng-deep to set some styles to it, and it is better to have a unique name when working with ng-deep
2- set the overflow value to hidden in your stylesheet
app.component.html
<nz-modal[(nzVisible)]="isVisible"nzTitle="The first Modal"[nzClassName]="'my-modal-wrapper'"(nzOnCancel)="handleCancel()"(nzOnOk)="handleOk()"><ng-container*nzModalContent><nz-tabset><nz-tabnzTitle="Tab 1">ContentofTabPane1</nz-tab><nz-tabnzTitle="Tab 2">ContentofTabPane2</nz-tab><nz-tabnzTitle="Tab 3">ContentofTabPane3</nz-tab></nz-tabset></ng-container></nz-modal>
Reproduction link
https://stackblitz.com/edit/ng-zorro-antd-ivy-que38s?file=src%2Fapp%2Fapp.component.ts
Steps to reproduce
click tab2
What is expected?
the tab content comes from the modal
What is actually happening?
the tab content comes from the page
The text was updated successfully, but these errors were encountered: