question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When using data-search-selector it doesn't detect search-text

See original GitHub issue

Bootstraptable version(s) affected: All? tried on 5 and on the live editor.

Description
I am setting up a data-search-selector to use sticky search and search-text just change the value of that input, but doesn’t execute the search.

Example
https://live.bootstrap-table.com/code/eliezra236/8439

Possible (optional)

I made some attempts of changing it way later (trough button that execute:

$("#table").bootstrapTable("refreshOptions", {
    searchText: "testing",
  });

And it does the same thing, changes the text in the input but doesn’t execute the search.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
eliezra236commented, Jul 30, 2021

Oh okay, you mean the initial search (data-search-text="item 2") dont work ? I can reproduce that, do you also have issues while searching a other value manually ?

By manually you mean to change the value inside the text field manually? that works. If you mean to change the data-search-text with something like refreshOption then no it still doesn’t work.

The bug is that changing search-text won’t affect the search-selector, not initially when first loaded and not when changed using refreshOption

0reactions
UtechtDustincommented, Jul 29, 2021

Oh okay, you mean the initial search (data-search-text="item 2") dont work ? I can reproduce that, do you also have issues while searching a other value manually ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Table Options - Bootstrap Table
The custom search function is executed instead of the built-in search function, takes three parameters: data : the table data. text : the...
Read more >
Using the Isotope plugin, can I filter by string name and make ...
I solved filtering by string but still need help with with images overlapping. ... default: iso.isotope({ filter: function() { var name = $(this).find('....
Read more >
https://raw.githubusercontent.com/wenzhixin/bootst...
`text`: the search text. * `filter`: the filter object from `filterBy` method. Example usage: {% highlight javascript %} function customSearch(data, ...
Read more >
Bootstrap table search filter example
Datatables has a selector-modifier option that that can be used with the rows () API to get the rows in the currently sorted...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found