Skip to content

bug(form-field): matSuffix and matPrefix not clickable anymore #26209

Closed
@olischmidt123

Description

@olischmidt123

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

v14.2.7

Description

When using a click event or a tag around a matSuffix or matPrefix it doesnt trigger.

Reproduction

Steps to reproduce:

<mat-form-field> <mat-label>Test</mat-label> <input matInput value=""> <mat-icon matSuffix color="primary" click="test()">launch</mat-icon> </mat-form-field>

Expected Behavior

When using an a tag: open new tab or window
When using click event: execution of function

Actual Behavior

No effect when clicking

Environment

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

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaround

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions