Skip to content

bug(mat-button): Button is clickable even if the cursor is not on the button #26354

@iKrishnaSahu

Description

@iKrishnaSahu

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

14

Description

Button is clickable even if the cursor is not on the button

v15
mat button v15

v14
mat button v14

Reproduction

Steps to reproduce:

  1. Visit https://material.angular.io/components/button/overview
  2. Try the same step which is shown in the attached gifs

Expected Behavior

Button should not be clickable if cursor is not on the button

Actual Behavior

Button is clickable if cursor is not on the button

Environment

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs triageThis issue needs to be triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions