TODO we should pass in the props resetValueSpecification. Reset should be part of this editor. Also through here we can call observe_ accordingly.

See https://github.com/finos/legend-studio/pull/1021

  • Parameters

    • props: {
          className?: string;
          displayDateEditorAsEditableValue?: boolean;
          graph: PureModel;
          handleBlur?: () => void;
          handleKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;
          isConstant?: boolean;
          observerContext: ObserverContext;
          resetValue: () => void;
          selectorConfig?: BasicValueSpecificationEditorSelectorConfig;
          setValueSpecification: (val: ValueSpecification) => void;
          typeCheckOption: TypeCheckOption;
          valueSpecification: ValueSpecification;
      } & RefAttributes<null | HTMLInputElement>

    Returns ReactNode