Skip to content

Commit

Permalink
Fix rest/spread error
Browse files Browse the repository at this point in the history
  • Loading branch information
ericgio committed Jul 26, 2016
1 parent ca8886a commit 3b292e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Typeahead.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,14 @@ const Typeahead = React.createClass({
* and selection(s).
*/
clear() {
const {activeIndex, showMenu} = this.getInitialState();
const selected = [];
const text = '';

this.setState({
...this.getInitialState(),
activeIndex,
selected,
showMenu,
text,
});

Expand Down

0 comments on commit 3b292e2

Please sign in to comment.