I have encountered an issue in my web view where I am programmatically creating an input field element using JavaScript and setting focus to it after creation. The problem is that the keyboard pops up for a split second and then closes when trying to focus on the newly created input field. Even when manually clicking into the input field, sometimes it won't grab focus unless held for a second. It seems like there may be some inconsistency or propagation issue at play.
Even when throwing multiple input fields onto the screen, some will focus with a single click while others require a longer touch.
Is there something I am overlooking in this situation? I am working on an iOS WebView.