Skip to content
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

Make it possible to set id attribute for input element #48

Closed
datrinh opened this issue Apr 30, 2020 · 1 comment
Closed

Make it possible to set id attribute for input element #48

datrinh opened this issue Apr 30, 2020 · 1 comment

Comments

@datrinh
Copy link

datrinh commented Apr 30, 2020

Expected Behavior

Having an id prop to pass down to the input[type="password] element.

Actual Behavior

No such property available (from the looks of it in the docs)

Maybe such a thing is possible and I merely didn't see it? This is required to use labels with the for attribute. Putting id on the password component itself, will result in both the wrapper AND the input to have the same ID, which is bad.

@apertureless
Copy link
Owner

Hey @datrinh

this should actually work. You can bind all attributes to the <Password> component and they will appear on the input.

That the id appeared in the root element is a bug and should be fixed with the latest release.

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

No branches or pull requests

2 participants