Error when using setEnable method

I have a screen edit and tow button Edit and ReadOnly :

Step 1, when i start edit screen:
image

Step 2, when i click button ReadOnly → setReadOnly(true); and screen like that:
image

Step 3, after when i click button Edit → setReadOnly(false); and screen like that:
image

===> Issue at step3 i want screen like step 1 (with the second field being disabled)

My Desciptor:
image

My Controller:
image

Thanks and Regards

You can use the “enable” attribute instead of the “editable” attribute.
Or You need to restore the value of the attribute “editable” after switching read only mode.