fmoo / react-typeahead

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

fixed problem: list is constantly popping up when Typehead component used with managed `value` #243

Closed sharpensteel closed 6 years ago

sharpensteel commented 6 years ago

fixed problem: list is constantly popping up when Typehead component used with managed value, i.e.:

class Page extends React.Component{
    render(){
        return <Typehead 
             value={this.state.myValue} 
             onBlur={(e)=>this.setState({myValue: e.target.value}) }
             options={["AAA","BBB"]}
        />`
    }
}
sharpensteel commented 6 years ago

@fmoo, done, please check

fmoo commented 6 years ago

Published as 2.0.0-alpha.7