framework7 icon indicating copy to clipboard operation
framework7 copied to clipboard

Searchbar component needs a debounce on search

Open fmp777 opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. UI gets really lagged when Searchbar handles the element filter

Describe the solution you'd like Add a simple 300 second debounce to the built-in element filter - can consider adding it as a parameter like debounce: 0 for default or debounce: 300 to specify the ms. I would recommend changing behavior to 300 by default, as I cannot imagine anyone really wants 10 searches to popoff before the person stops typing their query.

Describe alternatives you've considered I've already written my own debounced customSearch, but sad to do this when the component already does what is needed (and beautifully so)

fmp777 avatar Mar 14 '23 18:03 fmp777

Can you create codesandbox for reproduce that error?

Simone4e avatar Mar 15 '23 10:03 Simone4e