in packages/graph-explorer/src/components/InputField/InputField.tsx [49:63]
defaultValue: isNumberInput(props)
? String(props.defaultValue)
: (props.defaultValue as string),
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") {