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

On re-select the text-input the first option of the list gets selected by default

Open tanmay-cs13 opened this issue 8 years ago • 0 comments

Function _onTextEntryUpdated should be update to set the selectionIndex equal to null.

  _onTextEntryUpdated: function() {
    var value = this.refs.entry.value;
    this.setState({visible: this.getOptionsForValue(value, this.props.options),
                   selection: '',
                   selectionIndex: null,
                   entryValue: value});
  }

tanmay-cs13 avatar May 05 '16 06:05 tanmay-cs13