Skip to content

bug: MatButton renders active state when cdkCopyToClipboard is applied #20203

Open
@ChristianKohler

Description

Reproduction

Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/angular-fw7eev?file=src/app/cdk-clipboard-overview-example.html

Steps to reproduce:

  1. Click on the copy button
  2. Move the mouse cursor outside of the button area

Expected Behavior

Button should not be highlighted after the cursor moves out of its area

Actual Behavior

Button stays highlighted

Environment

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/buttonmaterial specIssue related to the Material Design spec https://material.io/design/

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions