onChange: isNumberInput()

in packages/graph-explorer/src/components/InputField/InputField.tsx [52:63]


      onChange: isNumberInput(props)
        ? // It returns null if the field is empty
          (v: string) =>
            (props.onChange as (v: number | null) => void)?.(
              v && !isNaN(Number(v)) ? Number(v) : null
            )
        : (props.onChange as (v: string) => void),
    },
    (ref as RefObject<HTMLInputElement>) || localRef
  );

  if (labelPlacement === "inner") {