diff --git a/packages/x/src/useIntegerField.ts b/packages/x/src/useIntegerField.ts index b2a9b55c..8800b467 100644 --- a/packages/x/src/useIntegerField.ts +++ b/packages/x/src/useIntegerField.ts @@ -29,12 +29,12 @@ export const useIntegerField = ({ const parse = useCallback( (text: string) => { + text = text.trim(); + if (customParse) { return customParse(text); } - text = text.trim(); - if (text.length === 0) { return null; }