The mat-select
element is acting funny. See below.
Code
<mat-form-field>
<input matInput placeholder="Name" #NameInput>
</mat-form-field>
<mat-select placeholder="How Many?">
<mat-option>One</mat-option>
<mat-option>Two</mat-option>
<mat-option>Three</mat-option>
<mat-option>Four</mat-option>
<mat-option>Five</mat-option>
</mat-select>
Results
Wrapping the mat-select
in a mat-form-field
gives me the following error:
mat-form-field must contain a MatFormFieldControl. Did you forget to add matInput to the native input or textarea element?
However, including an input
with matInput
shows both the input
and the mat-select
together, making it look weird. Any way around this?