primefaces / primevue

Next Generation Vue UI Component Library
https://primevue.org
MIT License
10.58k stars 1.23k forks source link

DataTable: Filtering (menu) not working with ColumnGroup #6313

Open naziks opened 2 months ago

naziks commented 2 months ago

Describe the bug

An error occurs (in ColumnFilter.vue) when using ColumnGroup with filter-display="menu":

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'filter')

This seems to be caused by the absence of the filterButtonProps (and possibly filterInputProps) in TableHeader.vue.

Reproducer

https://stackblitz.com/edit/t2q7cz?file=src%2FApp.vue

PrimeVue version

4.0.5

Vue version

3.x

Language

TypeScript

Build / Runtime

Nuxt

Browser(s)

Chrome 128.0.6613.84

Steps to reproduce the behavior

No response

Expected behavior

No response

darioillusorium commented 2 months ago

Hi! Same issue here. I cannot filter with ColumnGroup