-
Notifications
You must be signed in to change notification settings - Fork 402
Closed
Labels
Description
Version
6.0.0-alpha.6 (though I believe this bug exists in version 5 as well)
Steps to reproduce
- Navigate to the Asynchronous Search on the example page:
https://ericgio.github.io/react-bootstrap-typeahead/#asynchronous-searching - Enter "the" into the input - search results for "the" will display in the menu - expected
- Delete "the" from the input - the menu will close - expected
- Enter "test" into the input - the previous options for "the" will render in the menu for the duration of delay prop on AsyncTypeahead component - unexpected
Expected Behavior
The menu should display the value for searchText prop when a new search begins
Note: I did try several workarounds to clear the options using onMenuToggle prop, however this produced unwanted side effects
Actual Behavior
The menu displays options from the previous search results