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

[mwc-textfield] add name property to input #1052

Closed
fernandopasik opened this issue Mar 30, 2020 · 3 comments
Closed

[mwc-textfield] add name property to input #1052

fernandopasik opened this issue Mar 30, 2020 · 3 comments
Assignees
Labels
Type: Feature New feature or request

Comments

@fernandopasik
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Want a way to put a name property into the input element inside the textfield so a wrapping form can access it

Describe the solution you'd like
Have the name property and forward it to the input element

Describe alternatives you've considered
To use the textfield I've selected the mwc-textfield elements manually and extracted the value property

@fernandopasik fernandopasik added the Type: Feature New feature or request label Mar 30, 2020
@fernandopasik
Copy link
Contributor Author

Looking at this issue a bit more, I realize that since the input is in shadow dom, a wrapping form element won't be able to see this in the FormElement.elements property.

Is it in consideration to append the input through light dom? That would make the input element accessible from a wrapping form element.

@dfreedm
Copy link
Collaborator

dfreedm commented Mar 31, 2020

Related #289

@fernandopasik
Copy link
Contributor Author

I think this one can be closed as it's now in the new text-field component
https://github.com/material-components/material-web/blob/master/textfield/lib/text-field.ts#L140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants