Skip to content

Add the ability to set the input attributes #194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lsacco-nutreense opened this issue May 20, 2022 · 1 comment
Open

Add the ability to set the input attributes #194

lsacco-nutreense opened this issue May 20, 2022 · 1 comment

Comments

@lsacco-nutreense
Copy link

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

@Tonio-lavanda
Copy link

+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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants