Skip to content

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

Open

Description

@crmky

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

Activity

  1. added
    BugIssues which are marked as Bug
    on Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIssues which are marked as Bugfilter-controlIssues for the filter-control extension.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions