When I try to add [(ngModel)] directive to mat-autocomplete, I get following warning.
ERROR Error: More than one custom value accessor matches form control with unspecified name attribute
This warning gets fixed if I remove the TrimValueAccessorModule import to my module.
I can disable TrimValueAccessorModule for the mat-autocomplete by adding class="ng-trim-ignore" attribute to the input element of mat-autocomplete and fix the warning, but it would be better if TrimValueAccessorModule could work with mat-autocomplete without a problem.
When I try to add
[(ngModel)]
directive to mat-autocomplete, I get following warning.This warning gets fixed if I remove the
TrimValueAccessorModule
import to my module.I can disable
TrimValueAccessorModule
for the mat-autocomplete by addingclass="ng-trim-ignore"
attribute to the input element of mat-autocomplete and fix the warning, but it would be better ifTrimValueAccessorModule
could work with mat-autocomplete without a problem.