Open
Description
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
prior to mdc migration
Description
when using select[matNativeControl]
inside <mat-form-field appearance="outline">
there's a couple of problems:
- when using an empty string as the default option, the label appears within the form field. directly clicking the label does not trigger the options.
- clicking just inside
mat-form-field
(inside the outline) also does not trigger the options
Reproduction
StackBlitz link: https://stackblitz.com/edit/components-issue-r49x2i?file=src%2Fapp%2Fexample-component.html
Steps to reproduce:
- click the label while it's within the form field
- also click just inside the bounds of the form field
Expected Behavior
triggers the options
Actual Behavior
options are not triggered - label just moves up
Environment
- Angular: 16.1.2
- CDK/Material: 16.1.3
- Browser(s): chrome
- Operating System (e.g. Windows, macOS, Ubuntu): macOS