diff --git a/gui/src/components/gui/NumberInput.tsx b/gui/src/components/gui/NumberInput.tsx index 60693571e..fa622d5e5 100644 --- a/gui/src/components/gui/NumberInput.tsx +++ b/gui/src/components/gui/NumberInput.tsx @@ -34,7 +34,7 @@ const NumberInput: React.FC = ({ const handleInputChange = (e: React.ChangeEvent) => { const newInputValue = e.target.value; setInputValue(newInputValue); - + // Only update the actual value if it's a valid number const numValue = parseInt(newInputValue, 10); if (!isNaN(numValue)) { @@ -63,10 +63,12 @@ const NumberInput: React.FC = ({ WebkitAppearance: "none", MozAppearance: "none", }} + min={min} + max={max} />