From 3b292e26d1a027bf1c88b8e7ac7ad208c7ef5d23 Mon Sep 17 00:00:00 2001 From: Eric Giovanola Date: Mon, 25 Jul 2016 23:10:55 -0700 Subject: [PATCH] Fix rest/spread error --- src/Typeahead.react.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Typeahead.react.js b/src/Typeahead.react.js index 2e113d2b..92a81e54 100644 --- a/src/Typeahead.react.js +++ b/src/Typeahead.react.js @@ -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, });