Skip to content

Preventing auto formatting on NumberField to exclude comma separation? #5732

Discussion options

You must be logged in to vote

I think you can use the formatOptions parameter, specifically formatOptions={{ useGrouping: false }}, to not display the number without thousands separators.

This will however only change the way the numbers are displayed on screen - it should not affect the zod validation.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@deltasierra96
Comment options

@snowystinger
Comment options

@deltasierra96
Comment options

@snowystinger
Comment options

Answer selected by deltasierra96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants