fmoo / react-typeahead

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

added component functions to manipulate selected list #138

Open trshafer opened 8 years ago

trshafer commented 8 years ago

changed defaultSelected to no longer modify the selected list after the first render I accidentally fell into the trap of https://facebook.github.io/react/tips/props-in-getInitialState-as-anti-pattern.html

hey @fmoo this is no longer backward compatible with previous versions because of the breaking defaultSelected change. Let me know your thoughts.

trshafer commented 8 years ago

Hey @fmoo I rebased off master. Ready to merge when you're ready, assuming you like the additions.