In my code, I have implemented an input field along with a $watch function that triggers a server request when the scope variable changes. While the server request is being processed, I disable the input field. However, once the request is complete and the field is re-enabled, the cursor is missing from the input line. I want to ensure that the cursor is present again when the input field is enabled.
I attempted to restore focus using a directive such as How to set focus on input field?, but unfortunately, it does not seem to work in conjunction with enabling/disabling the field. I tried setting both the "focusing" and "enabling" variables at the same time, but it did not have the desired effect.