Remove call to setState
parent
aff31e2eee
commit
fc57502480
|
@ -104,12 +104,8 @@ const TagInput = React.createClass({
|
|||
return;
|
||||
}
|
||||
|
||||
this.setState(
|
||||
() => {
|
||||
this.input.value = '';
|
||||
onAddTag(newItem);
|
||||
}
|
||||
);
|
||||
this.input.value = '';
|
||||
onAddTag(newItem);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue