How Do I Prevent the System from Setting Focus to a Widget After an Error?
When a service receives an error and shows a message after calling a back-end service, the browser attempts to set focus to the relevant widget in error. If you don't need this behavior, you can define the TabMenu variable dontSetFocusOnError to boolean "true.
Example:
var dontSetFocusOnError = true;