fmoo / react-typeahead

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

Tokenizer custom values send hidden inputs as "[Object object]" #141

Closed rogeriotaques closed 8 years ago

rogeriotaques commented 8 years ago

It would be a lot useful if there is an option to customise the token output.

Now, whenever you select an item from result list, it creates a token tag which has a hidden input field. But, when using an option list of objects, this hidden field has its value set to [Object object].

Would be great if either we could customise the token output, adding or removing elements inside created tag, as well as to define which object property should be used as the hidden field's value.

minyoung commented 8 years ago

I have a pull request for this: https://github.com/fmoo/react-typeahead/pull/168

fmoo commented 8 years ago

Should be fixed.