imports/ui/components/elastic/typeahead.js
// If there is a click outside of the component, hide the suggestions list
If there is a click outside of the component, hide the suggestions list
If there is a click outside of the component hide the suggestions list
handleClick(e) {
  	if (
			!this.refs[this.props.refKey+'typeaheadContainer'].contains(e.target) &&
			!this.refs[this.props.refKey+'typeaheadSuggestionsContainer'].contains(e.target)
		) {
			this.setState({suggestionsVisible: false});
    	return;
    }
		else {
			return;
		}
  }
handleClick ( e ) { if ( ! this . refs [ this . props . refKey + 'typeaheadContainer' ] . contains ( e . target ) && ! this . refs [ this . props . refKey + 'typeaheadSuggestionsContainer' ] . contains ( e . target ) ) { this . setState ( { suggestionsVisible : false } ) ; return ; } else { return ; } }
If there is a click outside of the component, hide the suggestions list
If there is a click outside of the component hide the suggestions list
// Hide the suggestions list