tomsouthall / turnstone

React customisable autocomplete component with typeahead and grouped results from multiple APIs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

onClear event

absentdream opened this issue · comments

hi.
First great component.. :)

can i suggest a onClear event be added

i have got around it atm by using the onChange and looking for a empty value, but would be a little
onChange(value){ console.log("InputTypeahead: onChange"); if(value==''){ this.setState({value:'',displayValue:''}); } }
Many Thanks
Calvin streeting