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.

Debounced `onSearch` handler being cancelled prematurely in AsyncTypeahead

See original GitHub issue

I just want to tell you if this not working it because i try install last version, and i check on package,json i see this "react-bootstrap-typeahead": "^5.0.0-rc.3" when i try using this version and run example it’s not working, but after i change version "react-bootstrap-typeahead": "4.1.0" its running, so maybe there is an issue on new version for OnSearch and OnPagination options, thank you for making awesome plugin.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
jbogdanicommented, Jun 23, 2020

Digging deeper into this I found it was an error of mine. I was using onInputChange to get the value together with onChange. They were calling the same callback function to set the application state on a higher level of my application. This was working up to 5.0.0-rc.2, but prevented somehow the firing of onSearch in 5.0.0. onInputChange works as expected, the error was on my side. Probably this helps also @ivanjuliant.

1reaction
ericgiocommented, Jun 27, 2020

I’ve added a warning to the v5 upgrade guide for now, since the new behavior is a potentially breaking change introduced in the latest major version. I’ll see how things go and if a lot of people have problems I may consider adding a warning in the code itself.

Read more comments on GitHub >

github_iconTop Results From Across the Web

onChange handler in async typeahead is not called when ...
Based on the code in Search.jsx , it doesn't look like onChange is being passed on to the typeahead, so be sure to...
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