Skip to content

Commit

Permalink
[@mantine/core] NumberInput: Fix value not being formatted correctly …
Browse files Browse the repository at this point in the history
…when precision changes (#3011)
  • Loading branch information
auronsan1st committed Nov 23, 2022
1 parent 58a7c7a commit 9be540c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mantine-core/src/NumberInput/NumberInput.tsx
Expand Up @@ -255,7 +255,7 @@ export const NumberInput = forwardRef<HTMLInputElement, NumberInputProps>((props
setValue(value);
setTempValue('');
}
}, [value]);
}, [value, precision]);

const shouldUseStepInterval = stepHoldDelay !== undefined && stepHoldInterval !== undefined;
const onStepTimeoutRef = useRef<number>(null);
Expand Down

0 comments on commit 9be540c

Please sign in to comment.