Skip to content

filterDataCollector function adds the splitted entries and the original? #7934

Description

@LazyT

Bootstraptable version(s) affected

1.24.2

Description

Hello,

I have a question about the bootstrap-table-filter-control extensions filterDataCollector function:

...data-filter-data-collector="tableFilter"...

<script>function tableFilter(value){
	return value.split(',');
}</script>

Let's say we have an comma separated entry with

"Line 1,Line 2,Line 3"

then the above function adds 4 entries

Line1
Line2
Line3

which is correct, but it also adds the original entry

"Line 1,Line 2,Line 3"

which is not expected.

Is this a bug or do I something wrong?

Thank you!

Example(s)

No response

Possible Solutions

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIssues which are marked as Bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions