onInputChange(value) {
    const { onSelect } = this.props;
    this.setState({ destinationInputValue: value });
    if (value) {
      this.loadDestinations(value);
    } else {
      this.setState({ destinations: [] });
      onSelect(undefined);
    }
  }
/**
   * Fired if user selects a destination from the input
   * @param {string} value Selected value.
   * @private
   */
Fired if user selects a destination from the input
@param {string} value Selected value.
@private
Fired if user selects a destination from the input @param { string } value Selected value . @private
onInputChange(value) {
    const { onSelect } = this.props;
    this.setState({ destinationInputValue: value });
    if (value) {
      this.loadDestinations(value);
    } else {
      this.setState({ destinations: [] });
      onSelect(undefined);
    }
  }
onInputChange ( value ) { const { onSelect } = this . props ; this . setState ( { destinationInputValue : value } ) ; if ( value ) { this . loadDestinations ( value ) ; } else { this . setState ( { destinations : [ ] } ) ; onSelect ( undefined ) ; } }
Fired if user selects a destination from the input
 @param {string} value Selected value.
Fired if user selects a destination from the input @param { string } value Selected value .