I have the following markup:
<div fxLayout="row" fxLayoutAlign="start start">
<mat-form-field class="company-filter-form">
<mat-select placeholder="Actionss">
<mat-option [value]=""></mat-option>
<mat-option value="Delete">Delete</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field class="company-filter-form">
<button mat-flat-button color="primary">Apply</button>
</mat-form-field>
I then get this rendering error:
ERROR Error: mat-form-field must contain a MatFormFieldControl.
at getMatFormFieldMissingControlError (form-field.js:109)
All modules are imported MatButtonModule, MatFormFieldModule & MatInputModule.
How can i add a mat-button to the same row as a mat-select?
mat-form-field
element are invalid - seeing that you're intending for the button to be a "submit" button, you could try including atype
attribute set tosubmit
. - Edric