summaryrefslogtreecommitdiffstats
path: root/web/react/components/suggestion/suggestion_list.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-12-03 15:13:25 -0500
committerhmhealey <harrisonmhealey@gmail.com>2015-12-03 15:16:39 -0500
commitf103e4c815234fd5f451fe66e29bc17f0b20cadb (patch)
tree77c699442b6f5e768ebfd5805d08de91af0913a4 /web/react/components/suggestion/suggestion_list.jsx
parentb69cc7a94a9fb69dda259b2286eeefc3d6a2ec95 (diff)
downloadchat-f103e4c815234fd5f451fe66e29bc17f0b20cadb.tar.gz
chat-f103e4c815234fd5f451fe66e29bc17f0b20cadb.tar.bz2
chat-f103e4c815234fd5f451fe66e29bc17f0b20cadb.zip
Changed SuggestionBox to clear its suggestions on losing focus
Diffstat (limited to 'web/react/components/suggestion/suggestion_list.jsx')
-rw-r--r--web/react/components/suggestion/suggestion_list.jsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/web/react/components/suggestion/suggestion_list.jsx b/web/react/components/suggestion/suggestion_list.jsx
index 87021fd94..e3ccd0f08 100644
--- a/web/react/components/suggestion/suggestion_list.jsx
+++ b/web/react/components/suggestion/suggestion_list.jsx
@@ -82,7 +82,7 @@ export default class SuggestionList extends React.Component {
}
render() {
- if (this.state.items.length === 0 || !this.props.show) {
+ if (this.state.items.length === 0) {
return null;
}
@@ -121,6 +121,5 @@ export default class SuggestionList extends React.Component {
}
SuggestionList.propTypes = {
- suggestionId: React.PropTypes.string.isRequired,
- show: React.PropTypes.bool.isRequired
+ suggestionId: React.PropTypes.string.isRequired
};