Skip to content

[0.81] - Fix Focus Outline for Programmatical focus#16282

Open
vineethkuttan wants to merge 3 commits into
0.81-stablefrom
81focus
Open

[0.81] - Fix Focus Outline for Programmatical focus#16282
vineethkuttan wants to merge 3 commits into
0.81-stablefrom
81focus

Conversation

@vineethkuttan

@vineethkuttan vineethkuttan commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Description

When a component receives programmatic focus (via autoFocus or ref.focus()) during app startup, the focus outline/rectangle is displayed. This should not happen — programmatic focus should not trigger the focus visual, only keyboard-initiated focus should.

The same component focused programmatically at any other time (e.g., triggered by a button press) correctly does not show the focus outline. The issue is isolated to the initial app start focus.

Type of Change

Testing

Tested in playground

Changelog

Should this change be included in the release notes: yes

Fix Focus Outline for Programmatical focus

Microsoft Reviewers: Open in CodeFlow

@vineethkuttan vineethkuttan requested a review from a team as a code owner June 25, 2026 11:50

@Nitin-100 Nitin-100 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants