Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-9247

Make javascript focus code more robust

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.5
    • Fix Version/s: 5.5.0-HF14, 5.6
    • Component/s: Seam / JSF UI
    • Environment:
      Internet Explorer, all versions

      Description

      Need to make jquery.tools.focusfirst.js more robust: Internet Explorer doesn't allow to give focus to a hidden element.
      As a consequence, if elem.focus() is called when elem is not accessible, there will be this error

      Message: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus.
      Line: 1752
      Char: 10
      

      Need to add a condition (maybe only for IE) to check if element is visible before giving it the focus.

        Attachments

          Activity

            People

            • Assignee:
              tmartins Thierry Martins
              Reporter:
              tmartins Thierry Martins
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: