Has anyone experienced the textfield being not editable after assigning values to the states?
Here is a video: https://jumpshare.com/embed/26PrqXSjycD4iOB3dL7W
Has anyone experienced the textfield being not editable after assigning values to the states?
Here is a video: https://jumpshare.com/embed/26PrqXSjycD4iOB3dL7W
2
Answers
In React, a control component is an input form element whose state is controlled by React’s state. When you set the value property on an input element such as TextField, that value is bound to React state. Therefore, when the user changes the input, this state must also be updated.
There are few things that might be causing you the issue – You have a disabled prop set to
{busy}
. If busy istrue
, theTextField
will bedisabled
. Make surebusy
is set tofalse
or not preventing the field from being editable.Make sure that you haven’t set the
readonly
prop on theTextField
. Ifreadonly
is set totrue
, it will make theTextField
not editable.