Skip to content

How to make the input element controlled? #3848

Answered by JoviDeCroock
NicolasKeita asked this question in Q&A
Discussion options

You must be logged in to vote

<input value={input} disabled /> would do as you are suggesting, typing does not override the value 😅

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by NicolasKeita
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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