Skip to content

A11y Bug 6210968: Keyboard focus gets lost after closing the 'location dropdown' control via esc key. #641

Closed

Description

@KethanaReddy7

Test Environment:

OS: Win 11 version 22h2 build 25151.1000

Application: OneNote Clipper

URL: https://www.onenote.com/clipper

Browser: Edge Version 105.0.1300.0 (Official build) dev (64-bit)

Pre-requisite:

Install OneNote clipper from https://www.onenote.com/clipper and sign-in with Microsoft work account.

Repro Steps:

  1. Go to https://www.onenote.com/clipper URL.

  2. Select "Clip to OneNote" button in top right corner.

  3. Navigate to "Location dropdown" under 'Article' button through Tab key and press enter key.

  4. Now navigate the dropdown using tab key and then pressing Esc key

  5. Observe the issue here.

Actual Result:

Keyboard focus gets lost after closing the 'location dropdown' control via esc key.

Expected Result:

Keyboard focus should land on 'location dropdown' control after closing pop-up via esc key.

User Experience:

Keyboard users will impact here as they activate any control, pop-up get opened and focus get lost after closing the pop-up via esc key.

MAS Reference:

Focus Order - Liquid (microsoft.com)

Have feedback to share on Bugs? Please help fill Trusted Tester Bug Feedback (office.com).

Activity

  1. claude commented on Mar 12, 2026

    @claude

    Claude finished KethanaReddy7's task in 2m 26s —— View job • claude/issue-641-20260312-1033 • Create PR ➔


    Accessibility Fix Complete

    • Analyze the issue and understand the problem
    • Find the location dropdown component code
    • Implement fix to restore focus when dropdown is closed via Escape
    • Add test for focus restoration
    • Commit and push changes

    Summary:
    Fixed the accessibility issue where keyboard focus was lost after closing the location dropdown via the Escape key. The fix modifies the onPopupToggle method in sectionPicker.tsx to restore focus to the dropdown trigger element (sectionLocationContainer) when the popup closes.

    Changes:

    1. src/scripts/clipperUI/components/sectionPicker.tsx - Added focus restoration logic in onPopupToggle when the popup closes
    2. src/tests/clipperUI/components/sectionPicker_tests.tsx - Added test to verify focus restoration behavior

    |

  2. added a commit that references this issue on Mar 12, 2026
    f34aa40
  3. KethanaReddy7 commented on Mar 26, 2026

    @KethanaReddy7
    ContributorAuthor

    Fixed in #650

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions