appbaseio / appbaseio/reactivesearch

DataSearch component - controlled behaviour not working

オープン
#2,114 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
JavaScript
スター
4.9k
フォーク
478
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。