In our SAPUI5 application we have an Input field in a pages header that looses its focus.
To explain it in more detail. We have an initial view where the user enters some values. On accepting the values the application goes to the next view.
So what we want to do is set the focus to the input field in that view. We used the following code to achieve that:
jQuery.sap.delayedCall(500, this, function() {
this.getView().byId("idInput").focus();
});
This works fine for our inital view. On the following views though you can see the focus is set properly but the very next moment it is lost.
How can I keep the focus on that input field?