appbaseio / appbaseio/reactivesearch

DataSearch component - controlled behaviour not working

Open
#2,114 4 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
4.9k
Forks
478
PR merge metrics
No merged PRs in 30d

Description

**Affected Projects**
React

**Library Version:** x.y.z
3.41.1 (working correctly in 3.0.0)

**Describe the bug**
When using the controlled behaviour of the DataSearch component to only trigger 'on enter' (as described here https://github.com/appbaseio/reactivesearch/issues/994#issuecomment-511854980)
, query is triggered on every keypress.

**To Reproduce**
[![Edit reactivesearch-quickstart-final-app (forked)](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/reactivesearch-quickstart-final-app-forked-1pnh4f?fontsize=14&hidenavigation=1&theme=dark)

Steps to reproduce the behavior:
Using above codesandbox:

Type in search box, query is made on every keypress.

**Expected behavior**
Type in search box, query is made only after key 'enter'.
(switching library version to 3.0.0 and behaviour is as expected).

Thanks for your help and for a great library!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.