angular-ng-autocomplete icon indicating copy to clipboard operation
angular-ng-autocomplete copied to clipboard

Add the ability to set the input attributes

Open lsacco-nutreense opened this issue 2 years ago • 1 comments

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:

image

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

lsacco-nutreense avatar May 20 '22 23:05 lsacco-nutreense

+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

Tonio-lavanda avatar Jan 25 '23 09:01 Tonio-lavanda