react-typeahead
react-typeahead copied to clipboard
Pure react-based typeahead and typeahead-tokenizer
Updated documentation to "fix" #254 - added documentation of arrow key navigation and `setEntryText`.
**I'm editing this once again for another problem that also has to do with the documentation.** Hi. I love this project, it's helped me a lot. But it's really underdocumented....
``` { this.typeahead = c; }} onOptionSelected={this.onBrandSelected} onBlur={this.onBlur} onFocus={this.onFocus} onKeyDown={this.onKeyDown} placeholder={lower.fetchingBrand ? '브랜드 로딩중...' : '브랜드명을 입력하세요'} value={lower.brand} customClasses={{ input: cx('input', this.state.inputError === 'brand' && 'error', lower.brand && 'bold'), results:...
I have this function which ``` _handleSort = (a, b, input_string) => { let distance = this.levenshtein.get(a.name, input_string) - this.levenshtein.get(b.name, input_string) console.log(`a:${a.name}, b:${b.name}, input:${input_string}`) return distance; } ``` How can...
The list showing the typeahead options is scrollable with mouse scroll but does not move with keyboard up/down keys.
The functionality seems like it should be the opposite of onFocus, if this doesn't work for you guys maybe I can add an extra prop to implement the functionality. right...
Props table added to Typeahead and Tokenizer in README.md file
**Basic Typeahead with Topcoat** After any options is selected you can search again and again with any need to unFocus textField and Focus on it again. **Now**, You can search...
Click outside must close suggestions. How to?
Hi, thank you for this excellent repo! I found that the code-base was somewhat old and in order to understand it better I did a rewrite to TypeScript: https://github.com/gforge/react-typeahead-ts I...