Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter Control select with a customized formatter causes runtime exception #7667

Open
crmky opened this issue Dec 26, 2024 · 0 comments
Open
Labels
Bug Issues which are marked as Bug

Comments

@crmky
Copy link

crmky commented Dec 26, 2024

Bootstraptable version(s) affected

1.24.0

Description

  • Set the column file control type to "select".
  • Set the column formatter to a customized function to return a JQuery object.
  • Disable column search formatter by setting data-search-formatter="false".

I would expect the search to use the raw value instead of the formatted value. But it turns out the implementation will always use the formatted value at https://github.com/wenzhixin/bootstrap-table/blob/4913290e032ad468f3b10ac2feb782f132be82bf/src/extensions/filter-control/utils.js#L324C13-L324C20.

Example(s)

https://live.bootstrap-table.com/code/crmky/18486

Possible Solutions

This is just a workaround. I saw the code will skip to use column related formatter if editable is enabled.

Additional Context

No response

@crmky crmky added the Bug Issues which are marked as Bug label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues which are marked as Bug
Projects
None yet
Development

No branches or pull requests

1 participant