Skip to content

Why is the NumberInput value a string? #2527

Discussion options

You must be logged in to vote

We can't support this for two reasons:

  • There's an option to format the number input's value based on the Intl.FormatOptions
  • User might run into NaN scenarios when typing decimal dot, say "12."

Hope this helps

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@toniengelhardt
Comment options

@segunadebayo
Comment options

Answer selected by segunadebayo
@toniengelhardt
Comment options

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