there is comment:
$$("form").focus(); //the first focusable element in the form is focused
but after disabling first element focus on form does not work:
Indeed, the Form doesn't search for a focus target if the first control in it is disabled. Thank you for pointing it out - the fix will be available as a part of the next update.
It looks like you're new here. If you want to get involved, click one of these buttons!