I implemented angular-ng-autocomplete with angular 10 and I added pattern. but pattern error comes when I selected one from the data option.