microsoft / microsoft/microsoft-ui-xaml

NumberBox and AutoSuggestBox don't respect IsTabStop="False"

Open
#10,375 1 comment 1 reaction 0 assignees View on GitHub
area-AutoSuggestBox area-NumberBox bug
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

Certain controls, including but possibly not limited to the NumberBox and the AutoSuggestBox (and *not* TextBox), fail to respect IsTabStop="False", and will remain as a tab stop.

### Steps to reproduce the bug

1. Create a NumberBox or TextBox with `IsTabStop="False"` specified in XAML
2. Create an element that is a tab stop before this element's effective TabIndex
3. Focus the "before" element and press "tab"
4. See that the element with `IsTabStop="False"` is functioning as a tab stop

### Expected behavior

Elements with `IsTabStop="False"` should not get focus while `IsTabStop` is `false` when the user presses the "Tab" key.

### Screenshots

![Image](https://github.com/user-attachments/assets/30f6f998-b512-42a7-a003-15904ab20d27)

### NuGet package version

WinUI 3 - Windows App SDK 1.6.5: 1.6.250205002

### Windows version

Windows 11 (23H2): Build 22631

### Additional context

Minimal reproducable example available at https://github.com/jb-bcl/repro/tree/main/WinUI3_AsbAndNumberBoxNotRespectingTabStopFalse

Contributor guide

Open the contributing guide

Research direction

Start with the linked minimal reproducible example and reproduce the tab-navigation behavior using NumberBox and AutoSuggestBox with IsTabStop="False". Trace how these controls participate in keyboard focus traversal, then verify that pressing Tab skips them while the property is false.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.