PrimeNG filter dropdown issue in scrollable turbo

2019-08-23 12:23发布

In prime-ng turbo table , when we put filter dropdown in scrollable table dropdown going inside the table

Without scrollbale table dropdown works perfect. This works perfect

but when scrollable table , dropdown is going inside the table Not works perfect. so I want to do dropdown outside the table not inside the table.

This is a link https://primeng-table-bry1sl.stackblitz.io/ to see the code. Please see in 1024 resolution so you can see the scroll in the table and select one of the brand to filter the data.

Can anyone help me.

2条回答
不美不萌又怎样
2楼-- · 2019-08-23 13:17

Use appendTo="body" as described here

查看更多
Lonely孤独者°
3楼-- · 2019-08-23 13:23

The problem is here:

.ui-table-resizable .ui-table-thead>tr>th, .ui-table-resizable .ui-table-tfoot>tr>td, .ui-table-resizable .ui-table-data>tr>td {
/* overflow: hidden; */

}

try to comment the overflow attribute or set to 'visible' ... it works!

查看更多
登录 后发表回答