fix: remove float limits when not defined (#8289)

Removed float limits when not defined
This commit is contained in:
Lucas Oliveira 2025-05-30 12:55:32 -03:00 committed by GitHub
commit 196b611d1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,8 +20,8 @@ export default function FloatComponent({
id = "",
}: InputProps<number, FloatComponentType>): JSX.Element {
const step = rangeSpec?.step ?? 0.1;
const min = rangeSpec?.min ?? -2;
const max = rangeSpec?.max ?? 2;
const min = rangeSpec?.min;
const max = rangeSpec?.max;
// Local state for input value
const [localValue, setLocalValue] = useState<string>(value.toString());