appbaseio / reactivesearch

Search UI components for React and Vue
https://opensource.appbase.io/reactivesearch
Apache License 2.0
4.9k stars 466 forks source link

Issues with multiple spaces and backspace in datasearch. #1327

Open priyanksha-monotype opened 4 years ago

priyanksha-monotype commented 4 years ago

I am using DataSearch for Autocomplete suggestions. I can see in network calls that when adding multiple spaces or using backspace, _msearch call is not going, though my custom query function is called. how can we restrict or ignore multiple spaces and capture backspace

priyanksha-monotype commented 4 years ago

@bietkul @jyash97

priyanksha-monotype commented 4 years ago
Screen Shot 2020-01-15 at 5 50 35 PM Screen Shot 2020-01-15 at 5 50 56 PM Screen Shot 2020-01-15 at 5 51 18 PM
priyanksha-monotype commented 4 years ago
  1. In first image I search text "Arial Bold"
  2. In second image on adding multiple spaces, though i trim the space in my custom query, the query didn't fired.
  3. In third image on backspace one extra space, query didn't fired.