diff --git a/packages/@mantine/core/src/components/NumberInput/NumberInput.tsx b/packages/@mantine/core/src/components/NumberInput/NumberInput.tsx index 5b046a19ef5..88cef2654a5 100644 --- a/packages/@mantine/core/src/components/NumberInput/NumberInput.tsx +++ b/packages/@mantine/core/src/components/NumberInput/NumberInput.tsx @@ -477,7 +477,7 @@ export const NumberInput = factory((_props, ref) => { setValue( Number.isNaN(parsedValue) || parsedValue > Number.MAX_SAFE_INTEGER ? replaced - : parsedValue + : clamp(parsedValue, min, max) ); } }}