Closed maoxiaoke closed 2 years ago
When press the arrow up key,@docsearch/react will mark the page crash. It is worth emphasizing that this's only happens with empty seacrh Items.
@docsearch/react
Steps
Search
And i found the source code that cause the error:https://github.com/algolia/docsearch/blob/e371f9ac9bc99275af193d39f50214c4ea420d22/packages/docsearch-react/src/DocSearchModal.tsx#L149
Hi,
Upgrading to the latest version of DocSearch v3 will fix this issue: https://github.com/algolia/docsearch/releases/tag/v3.0.0-alpha.40
Have a nice day!
Description
When press the arrow up key,
@docsearch/react
will mark the page crash. It is worth emphasizing that this's only happens with empty seacrh Items.Reproduction
Steps
Search
And i found the source code that cause the error:https://github.com/algolia/docsearch/blob/e371f9ac9bc99275af193d39f50214c4ea420d22/packages/docsearch-react/src/DocSearchModal.tsx#L149
Expected behavior
Environment