diff --git a/frontend/src/components/widgets/inputs/NumberInput.svelte b/frontend/src/components/widgets/inputs/NumberInput.svelte index 82a48a497d..4e742d56ae 100644 --- a/frontend/src/components/widgets/inputs/NumberInput.svelte +++ b/frontend/src/components/widgets/inputs/NumberInput.svelte @@ -127,9 +127,6 @@ // The simple `clamp()` function can't be used here since `undefined` values need to be boundless let sanitized = value; - if (typeof min === "number") sanitized = Math.max(sanitized, min); - if (typeof max === "number") sanitized = Math.min(sanitized, max); - text = displayText(sanitized, unit); } @@ -141,9 +138,6 @@ let newValueValidated = newValue !== undefined ? newValue : oldValue; if (newValueValidated !== undefined) { - if (typeof min === "number" && !Number.isNaN(min)) newValueValidated = Math.max(newValueValidated, min); - if (typeof max === "number" && !Number.isNaN(max)) newValueValidated = Math.min(newValueValidated, max); - if (isInteger) newValueValidated = Math.round(newValueValidated); rangeSliderValue = newValueValidated;