fmoo / react-typeahead

Pure react-based typeahead and typeahead-tokenizer
ISC License
677 stars 230 forks source link

Optionally propagate keydown events #140

Open clalimarmo opened 9 years ago

clalimarmo commented 9 years ago

so that we can leverage default keydown behaviors provided by the browser, such as tabbing to the next input.

The default behavior is the previous behavior, so that this is not a breaking change.

clalimarmo commented 9 years ago

This addresses feedback on #111, and provides a way to address issue #110

stovmascript commented 8 years ago

The prop should also be added to tokenizer's render method.

Althought it doesn't work very well with the tokenizer. When you search and press tab, a list item gets selected and focus immediately jumps to the next HTML element. In the case of the tokenizer, I think the focus should remain in the search input after selecting a list item and should jump to the next HTML element after pressing tab again, if the input is empty.

clalimarmo commented 8 years ago

I just guessed at what might work for the tokenizer. I haven't been using the Tokenizer at all, and don't have anything set up to actually test that change out. I'll eventually get around to it, but if you happen to try it out, let me know if it works :)