I am currently exploring options to prevent an input from receiving focus without disabling it entirely. I need the backend to still retrieve data, but I want to restrict user editing of the input fields at certain times. Disabling the input is not an option since it prevents data from being sent back to the backend. What I am doing now is removing the disabled attribute when the user submits the form, but this momentarily makes the inputs look normal before the next page loads. Any suggestions on a better approach would be appreciated. (My next step will be adding the
background-color: #F2F2F2 !important;
color: #C6C6C6;
border-color: #ddd;
However, different browsers handle this differently, so I prefer a solution that does not exhibit this behavior.