appbaseio / appbaseio/reactivesearch

DataSearch component - controlled behaviour not working

Ouverte
#2,114 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
bug
Langage dominant
JavaScript
Étoiles
4.9k
Forks
478
Métriques de merge des PR
Aucune PR mergée en 30 j

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!

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.