Closed castelain closed 3 years ago
[https://stackblitz.com/edit/angular-uf44ee?file=src%2fapp%2fapp.component.html](https://stackblitz.com/edit/angular-uf44ee?file=src%2fapp%2fapp. Component.html)
Create a form
The drop-down option box and the SELECT box are not separated, you can scroll together with the table with the table; or, you can ban scrolling when there is a SELECT drop-down options that have not been closed.
NZ-SELECT is used in the form of a fixed header, the table is scrolled, and the NZ-SELECT pull-down option box and the SELECT box are separated.
ENVIRONMENT | INFO |
---|---|
Ng-Zorro-ANTD | 11.4.2 |
Browser | Chrome V92 |
This is my solution:
add [nzBackdrop]="true"
to nz-select
component. when you open select option list, it will block outside scroll control.
Thank you for your reply. This plan can meet my needs.
------------------ 原始邮件 ------------------ 发件人: "NG-ZORRO/ng-zorro-antd" @.>; 发送时间: 2021年8月30日(星期一) 下午2:45 @.>; @.**@*.**@*.***>; 主题: Re: [NG-ZORRO/ng-zorro-antd] nz-select 在固定表头的表格中使用,表格滚动时,nz-select 的下拉框和输入框分离 (#6956)
This is my solution:
add [nzBackdrop]="true" to nz-select component. when you open select option list, it will block outside scroll control.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.
Reproduction link
https://stackblitz.com/edit/angular-uf44ee?file=src%2Fapp%2Fapp.component.html
Steps to reproduce
What is expected?
下拉选项框和 select 框不分离,可以一起随表格滚动;或者,在有未关闭的 select 下拉选项弹框时,能禁止滚动
What is actually happening?
nz-select 在固定表头的表格中使用,表格滚动时,nz-select 的下拉选项框和 select 框分离