Backlog: Focus does not move back to the triggering element

XMLWordPrintable

    • 10.03
    • Severity 2 - Major

       Issue Summary

      When the modals dialogs are dismissed using "Cancel/ESC" buttons, focus moves to the top of the page rather than moving on the triggering element.

      Steps to Reproduce

      1. Open DC project.
      2. Activate the "Backlog" link from side navigation. 
      3. Activate "Context menu of issues" button. 
      4. Activate "Archive / Delete / Split issue / Add comment" buttons. 
      5. Observe that the modal dialogs appear. 
      6. Dismiss the modals using "Cancel/ESC" buttons.
      7. Observe that the focus moves at the top of the page rather than moving on the triggering element.

      Screen Recording 

      Screen Recording 2025-01-21 at 1.49.29 PM.mov

      Actual Results

      On closing the "Archive", “Delete“, "Add flag and comment" and "Split issue" modal dialogs, the programmatic focus does not return to the triggering element. Instead, the focus is updated to the beginning of the page. This required screen reader users and keyboard-only users to tab pass the content on the page before they could interact with the content after the triggering element.

      Expected Results

      The programmatic focus of users should be set on the triggering element of the dialog as soon as the dialog is closed.

      Set the keyboard focus to the modal dialogs' respective “Context menu” buttons of issues triggering element using the JavaScript .focus().

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

      Environment

      MacBook Pro (16-inch, 2021)

      macOS Sonoma Version 14.1

      Chrome - Version 131.0.6778.265 (Official Build) (arm64)

      Firefox- 134.0.1 (64-bit)

      Safari- Version 18.2 (19620.1.16.111.6, 19620)

      JAWS- Version 2023

      NVDA- Version 2023.2

      Voiceover - Version Latest

            Assignee:
            Unassigned
            Reporter:
            Shruti Chabukswar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: