packages/app/src/components/Select/Creatable.js
// implementation details in parent FormGroupSelect component
implementation details in parent FormGroupSelect component
implementation details in parent FormGroupSelect component
function Creatable({
  onChange,
  onInputChange,
  backspaceRemovesValue = false,
  components: componentsProps = {},
  ...props
}) {
  return (
    <ReactSelect
      onChange={(value, event) => {
        onChange && onChange(value, event);
      }}
      onInputChange={(value, event) => {
        onInputChange && onInputChange(value, event);
        const { action } = event;
        if (action === "input-change") {
          onChange && onChange(value);
        }
      }}
      components={{ ...components, ...componentsProps }}
      backspaceRemovesValue={backspaceRemovesValue}
      {...props}
    />
  );
}
function Creatable ( { onChange , onInputChange , backspaceRemovesValue = false , components : componentsProps = { } , ... props } ) { return ( < ReactSelect onChange = { ( value , event ) => { onChange && onChange ( value , event ) ; } } onInputChange = { ( value , event ) => { onInputChange && onInputChange ( value , event ) ; const { action } = event ; if ( action === "input-change" ) { onChange && onChange ( value ) ; } } } components = { { ... components , ... componentsProps } } backspaceRemovesValue = { backspaceRemovesValue } { ... props } / > ) ; }
implementation details in parent FormGroupSelect component
implementation details in parent FormGroupSelect component