Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCDataTable not showing columnFilter on external datasource #113
Comments
The problem with your solution is that column with no data would have a column filter when there are no items, and no filter when the items are there. So the solution is to remove |
Fixed in 3.1.2 version release. |
I have a datatable that lazyload from an api.
I’m using
"@coreui/vue": "^3.1.1"
When the api return empty
items: []
, result from a column being filtered and no matching data, the entire “columns filters” row disappear.This is a problem when you have a lot of columns being filtered and only one that doesn’t match anything, you must remove all filters and start from scratch.
Looking at the component, the problem is that it checks if the column is present in the items array, which is empty.
I would suggest changing this
To something like this?