Skip to content

TextInput remains focused after mouse/keyboard interaction with another component #14496

@chiaramooney

Description

@chiaramooney

Problem Description

After focusing on a TextInput control, when the user interacts via mouse or keyboard with another control...the TextInput remains focused and in edit mode. The only time TextInput correctly releases focus is when another TextInput is selected.

This behavior does not match other apps on Windows like WinUI3 Gallery.

Video Example:
https://github.com/user-attachments/assets/5f076642-338e-4d42-b8c2-c0f18888452c

WinUI Gallery Behavior:
https://github.com/user-attachments/assets/cda2fce8-6995-4fed-ad1a-5f1db8f10f86

Steps To Reproduce

  1. Interact with TextInput, then non-TextInput control

Expected Results

TextInput should lose focus, no longer display a focus ring, and no longer be in edit mode

CLI version

N/A

Environment

N/A

Community Modules

No response

Target Platform Version

None

Target Device(s)

No response

Visual Studio Version

None

Build Configuration

None

Snack, code example, screenshot, or link to a repository

No response

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions