fmoo / react-typeahead

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

How to Pass buttonAfter react-bootstrap property #161

Open sergio11 opened 8 years ago

sergio11 commented 8 years ago

Hi there,

How can I pass the buttonAfter prop to Input?.

I can't make it across the inputProps.

Here is the Input that I want to get

<Input type="text" buttonAfter={<Button type='submit'><Glyphicon glyph="search" /></Button>} />

thanks and greeting

fmoo commented 8 years ago

I don't think there's a good way to do this. If it's just the Glyphicon you need, you can define a custom displayOption as a function on your typeahead to inject the glyph.

sergio11 commented 8 years ago

Hi, thanks for response.

But, I don´t understand how make this with displayOptions.

here is the code. I want inject the button into Typehead like buttonAfter. Because the input does not look good on mobile

`

`