Hi Ohm,
Sorry for the inconvenience caused.
Your reported query was unclear. We have two scenarios stated below.
Scenario 1: When the user entered into Edit mode the background becomes changed to Red as well as it changed back to white when the user leaved from Edit mode.
Scenario 2: When the user entered into edit mode and change and commit the value, you can change the background color to Red for last edited value.
We are not able to get the exact working scenario from you query. Can you please revert back your scenario? This helps to serve you better.
Regards,
Ravi Shankar B.