hunk.code_window:         newOption: newOption,
           options:
             (allowCreateWhileLoading || !isLoading) && newOption
               ? (createOptionLabelFirst ? [newOption, ...options] : [...options, newOption])
               : options,
         });
       }
       onChange = (newValue: ValueType, actionMeta: ActionMeta) => {
         const {
  
hunk.labels: keep keep keep replace keep keep keep keep keep
hunk.after_edit:             ? (createOptionPosition === 'first' ? [newOption, ...options] : [...options, newOption])
  
hunk.file_path: src/Creatable.js
hunk.type: replace
file: import React, { Component } from 'react';
  
  import CreatableSelect from '../../src/Creatable';
  
  const components = {
    DropdownIndicator: null,
  };
  
  const createOption = (label: string) => ({
    label,
    value: label,
  });
  
  export default class CreatableInputOnly extends Component<*, State> {
    state = {
      inputValue: '',
      value: [],
    };
    handleChange = (value: any, actionMeta: any) => {
      console.group('Value Changed');
      console.log(value);
      console.log(`action: ${actionMeta.action}`);
      console.groupEnd();
      this.setState({ value });
    };
    handleInputChange = (inputValue: string) => {
      this.setState({ inputValue });
    };
    handleKeyDown = (event: SyntheticKeyboardEvent<HTMLElement>) => {
      const { inputValue, value } = this.state;
      if (!inputValue) return;
      switch (event.key) {
        case 'Enter':
        case 'Tab':
          console.group('Value Added');
          console.log(value);
          console.groupEnd();
          this.setState({
            inputValue: '',
            value: [...value, createOption(inputValue)],
          });
          event.preventDefault();
      }
    };
    render() {
      const { inputValue, value } = this.state;
      return (
        <CreatableSelect
          components={components}
          inputValue={inputValue}
          isClearable
          isMulti
          menuIsOpen={false}
          onChange={this.handleChange}
          onInputChange={this.handleInputChange}
          onKeyDown={this.handleKeyDown}
          placeholder="Type something and press enter..."
          value={value}
        />
      );
    }
  }
  