bootstrap-table icon indicating copy to clipboard operation
bootstrap-table copied to clipboard

Filter custom search function does not receive formatted content

Open jonatanschroeder opened this issue 2 years ago • 2 comments

Bootstraptable version(s) affected

1.21.3 and onwards (including current dev)

Description

In columns using select filter control (I haven't tested other types), if there is a custom search function and custom data, and search-formatter is true (the default), starting from version 1.21.3 the search function no longer receives the full formatted text for searching. In version 1.21.2 (and before), the full HTML of the formatted content was returned.

Example(s)

https://live.bootstrap-table.com/code/jonatanschroeder/15008

Filtering the "price" column works in 1.21.2, but not in 1.21.3, 1.21.4 or the current develop branch.

Possible Solutions

No response

Additional Context

No response

jonatanschroeder avatar Apr 13 '23 13:04 jonatanschroeder

Since Version 1.21.3 we remove html from the content, because of other filtering issues. Related PR: https://github.com/wenzhixin/bootstrap-table/pull/6574 Related Issue: https://github.com/wenzhixin/bootstrap-table/issues/6528

We could pass the rawValue and the modified value, what do you think @wenzhixin @djhvscf ?

UtechtDustin avatar Jun 08 '23 15:06 UtechtDustin