This commit is contained in:
Tom Moor
2017-05-26 00:04:13 -07:00
parent c0b85a643c
commit e3b2fcf8c9
6 changed files with 56 additions and 90 deletions

View File

@ -7,8 +7,8 @@ class SearchField extends Component {
onChange: Function,
};
handleChange = (event: SyntheticEvent) => {
event.currentTarget.value && this.props.onChange(event.currentTarget.value);
handleChange = (ev: SyntheticEvent) => {
this.props.onChange(ev.currentTarget.value ? ev.currentTarget.value : '');
};
render() {