summaryrefslogtreecommitdiffstats
path: root/webapp/components/suggestion/suggestion_box.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/suggestion/suggestion_box.jsx')
-rw-r--r--webapp/components/suggestion/suggestion_box.jsx8
1 files changed, 0 insertions, 8 deletions
diff --git a/webapp/components/suggestion/suggestion_box.jsx b/webapp/components/suggestion/suggestion_box.jsx
index 2fb44a340..b3f9843c6 100644
--- a/webapp/components/suggestion/suggestion_box.jsx
+++ b/webapp/components/suggestion/suggestion_box.jsx
@@ -38,14 +38,6 @@ export default class SuggestionBox extends React.Component {
SuggestionStore.addPretextChangedListener(this.suggestionId, this.handlePretextChanged);
}
- componentWillReceiveProps(nextProps) {
- // Clear any suggestions when the SuggestionBox is cleared
- if (nextProps.value === '' && this.props.value !== nextProps.value) {
- // TODO - Find a better way to not "dispatch during dispatch"
- setTimeout(() => GlobalActions.emitClearSuggestions(this.suggestionId), 1);
- }
- }
-
componentWillUnmount() {
SuggestionStore.removeCompleteWordListener(this.suggestionId, this.handleCompleteWord);
SuggestionStore.removePretextChangedListener(this.suggestionId, this.handlePretextChanged);