_triggerChange(value) {
    if (has(this.props, 'valueLink')) {
      this.props.valueLink.requestChange(value);
      this.setState({
        isOpen: false,
      });
    } else if (has(this.props, 'value')) {
      this.setState({
        isOpen: false,
      });
    } else {
      this.setState({
        focusedOptionValue: value,
        selectedValue: value,
        isOpen: false,
      });
    }

    if (this.props.onUpdate) {
      this.props.onUpdate({ value });
    }
  }
After an option has been selected the menu gets closed and the
selection processed.

Depending on the component's properties the value gets updated and the
provided change callback for onUpdate or valueLink is called.