Issue : “lost” characters when typing fast
See original GitHub issueBug 🐞
What is the current behavior?
When typing fast, some characters are missing in the searchbox with a custom renderer
<ais-search-box >
<template #default="{ currentRefinement, isSearchStalled, refine }">
<input
placeholder="search"
type="search"
:value="currentRefinement"
@input="refine($event.currentTarget.value)"
/>
<span :hidden="!isSearchStalled">Loading...</span>
</template>
</ais-search-box>
Eg : Typing “house” fast. (reload sandbox when you try to clear cache between you tests).
I have link my production index in the repro. You can see the issue in production here (open sourced) : https://mdisearch.com/
Sandbox
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
"lost" characters when typing fast / on slow connections
I've been having issues in vue instantsearch v2 (beta3) with the ais-search-box ... "lost" characters when typing fast / on slow connections.
Read more >Typed characters are slow or lost in Internet Explorer - Browsers
... client connection is not determined quickly enough, typed characters can be lost while the browser awaits the connection test results.
Read more >Missing letters when typing | CA Service Management
I do type extremely fast, so not sure if that's part of cause. ... as the issue may lost for some time and...
Read more >Quote problem when typing fast · Issue #5080 - GitHub
Issue Overview When typing fast in the quote block. Characters may be lost and the typing behavior becomes broken.
Read more >If you are typing quickly and type words in a mixed order, is ...
Rant time: If you type very fast (130+ wpm), the letters can actually end up ... so as to stop his growth?), the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Got it : https://github.com/algolia/vue-instantsearch/blob/master/src/components/SearchBox.vue#L162
I don’t think this can fully be solved without a custom widget, a slot will always have too little information to make a truly correct search box. It could be interesting to change the documentation to migrate from slot to custom widget for a custom search box, but for now this issue should be enough reference for anyone else falling into this issue.
Thanks for reporting Thomas!