Skip to content

bug(slide-toggle): no remaining focus if clicked on non active toggle #26489

Open
@RobinKamps

Description

@RobinKamps

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

if a non focused toggle is clicked, there is no remaining focus - bad if keyboard control is used afterwards.
However if the label is clicked instead, the remaining focus works.
toggle-focus

Reproduction

Steps to reproduce:

  1. https://material.angular.io/components/slide-toggle/overview
  2. click on not focused toggle vs click on not focused label

Expected Behavior

remaining focus should appear on click on a non focused toggle

Actual Behavior

no remaining focus on click on a not already focused toggle

Environment

  • Angular: 15.1.1
  • CDK/Material: 15.1.1
  • Browser(s): all
  • Operating System (e.g. Windows, macOS, Ubuntu): all

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/slide-toggle

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions