appbaseio / appbaseio/reactivesearch

DataSearch component - controlled behaviour not working

Abierto
#2,114 4 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
JavaScript
Estrellas
4.9k
Forks
478
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**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!

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.