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

inputProps={{value: this.props.value}} :(

Open export-mike opened this issue 9 years ago • 5 comments

Doesn't update text field as its only read on getInitialState, just want to clear my input after submitting a form. I'll keep this here I may contribute next week with a PR. but if you have any quick wins let me know!

export-mike avatar Apr 08 '16 15:04 export-mike

intermediate solution to get the job done use refs and call this.refs.field.setState({ entryValue: ' ' });

export-mike avatar Apr 08 '16 15:04 export-mike

@export-mike I'm having the same problem! I've used your temp solution for now and it works!

nikhilaravi avatar Apr 21 '16 13:04 nikhilaravi

@nikhilaravi can you try out, this beta version we're currently working on: npm i [email protected]

export-mike avatar Apr 21 '16 13:04 export-mike

I am running into this problem as well, and I have tried it with alpha 1 and 2

zalbiraw avatar May 21 '16 01:05 zalbiraw

you'll have to call refs on this, to have more control. It's not ideal.

Feel free to PR value props mapping to the value of the field, it's all tangled with state at the moment, this code can be simplified.

export-mike avatar May 21 '16 09:05 export-mike