appbaseio / reactivesearch

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

fix(datasearch): clearing value should reset suggestions #2282

Closed siddharthlatest closed 4 months ago

siddharthlatest commented 5 months ago

Bug Description

Enter 'p', clear input, enter 'p' again -> This doesn't fire a query, and as a result suggestions don't appear.

Description

Suggestions should be reset when the search input value is cleared. So that a new value fires the query.

This is tested with v1.35.4 released from the PR.

CSB link: https://codesandbox.io/p/sandbox/mystifying-sinoussi-2yswsg?file=%2Fpackage.json%3A12%2C45