angular-ng-autocomplete
angular-ng-autocomplete copied to clipboard
Add the ability to set the input attributes
Is your feature request related to a problem? Please describe.
I'm unable to add input attributes to suppress LastPass from putting their icon in this component. With ng-select
I could do something like this to add data-lpignore
attribute to the resulting input:
[inputAttrs]="{ 'data-lpignore': 'true' }"
This would allow me to suppress this icon that I currently see with this component:
Describe the solution you'd like
If you could supply an attribute to your component that I could set it in a similar fashion, that would be great!
Describe alternatives you've considered
I tried adding it directly but that didn't work, as expected.
Additional context
See above
+1
I would like to add a custom attribute to the input
to enable automated QA testing, so something like data-test-id
Maybe we could have an @Input()
to the component to add any custom attribute to the input