Skip to content

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

@jb-bcl

Description

@jb-bcl

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

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions