react-typeahead icon indicating copy to clipboard operation
react-typeahead copied to clipboard

How to Pass buttonAfter react-bootstrap property

Open sergio11 opened this issue 9 years ago • 2 comments

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

sergio11 avatar Mar 08 '16 08:03 sergio11

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.

fmoo avatar Mar 08 '16 18:03 fmoo

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

`

`

sergio11 avatar Mar 09 '16 23:03 sergio11