vue3-datatable icon indicating copy to clipboard operation
vue3-datatable copied to clipboard

Column filters apply even if column filters is disabled

Open te-deum opened this issue 9 months ago • 1 comments

Hi,

When I activate columnFilter, I can filter colmun individually. But when I deactivate columnFilter then filters applies without any chance to see or access filters value.

Is it possible to change custom-table.vue (around line 403) to add a check if column filters should apply or not.

Before :

if (!props.isServerMode) {
    props.columns?.forEach((d) => {
    ... 
    });

    if (currentSearch.value && rows?.length) {
    ...

After :

if (!props.isServerMode) {
    if (props.columnFilter) {
        props.columns?.forEach((d) => {
        ... 
        });
    }

    if (currentSearch.value && rows?.length) {
    ...

te-deum avatar May 24 '24 13:05 te-deum