I have a profile screen that appears with an Edit Profile button. When this button is clicked, the inputs should become editable. When the Save button is pressed, the user is done so the inputs become disabled again. I use a custom state for this; the input will be enabled when the state is yes (set when Edit is pressed) and disabled otherwise (state is set to no when Save is pressed).
I created a sample program with the two buttons and one input, and it works exactly as I describe above. (see the “Sample” images).
I then tried to do the same thing in my larger program (all other images). For now, I am just working with the first field, username. It is not working. When Edit is clicked not only does it not become enabled, but one of the other inputs takes the focus! I did nothing with this other field yet. I even deleted it and recreated it a few times, and the same thing happens.
Does anyone have any idea what could be going on? Thank you!