Skip to content

Is it possible to get the raw string value of TextField with type="number"? #24194

Answered by micahgodbolt
Vespersion asked this question in Q&A
Discussion options

You must be logged in to vote

The v8 and v9 TextField only allows strings for the value. Even our spin buttons, which simulate the UI of are still string based. You'll need to convert the number to string going in, and then back to number on the way out. All of the internal logic assumes it is a string.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by micahgodbolt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants