question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue : “lost” characters when typing fast

See original GitHub issue

Bug 🐞

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/

https://user-images.githubusercontent.com/10157845/189675208-12299b32-64ba-42b2-af1b-ba0bebf69ddc.mov

Sandbox

https://codesandbox.io/s/algolia-reproduction-issue-kt95nc

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

0reactions
Haroenvcommented, Dec 21, 2022

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found