[ 
https://issues.apache.org/jira/browse/TOBAGO-961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12978805#action_12978805
 ] 

Helmut Swaczinna commented on TOBAGO-961:
-----------------------------------------

I had to do some changes in restoreFocus():

  restoreFocus: function() {
    if (Tobago.capturedFocusId != null) {
      var focusedElement = document.getElementById(Tobago.capturedFocusId); 
      if (focusedElement != null && focusedElement.focus && 
!focusedElement.disabled) {
        try { // focus() on not visible elements breaks IE
          focusElement.focus();
          if (focusedElement.select) {
            focusedElement.select();
          }
        } catch(ex) {
          LOG.warn("Exception when setting focus on : \"" + 
Tobago.capturedFocusId + "\"");
        }
      }
      Tobago.capturedFocusId = null;
    } 
  },

> Focus is lost after ajax reload
> -------------------------------
>
>                 Key: TOBAGO-961
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-961
>             Project: MyFaces Tobago
>          Issue Type: Improvement
>          Components: Themes
>    Affects Versions: 1.0.33
>         Environment: All
>            Reporter: Helmut Swaczinna
>
> When the component which owns the keyboard focus is on the reloaded part of 
> the page, the focus is lost after ajax reload.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to