-
Notifications
You must be signed in to change notification settings - Fork 2.9k
[TextField] Fixed support for the componentId attribute in component TextField #3897
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
[TextField] Fixed support for the componentId attribute in component TextField #3897
Conversation
+ changed initialization attributed componentId, added default value this._id + changed initialization of the variable renderProps + changed render function for <input/> and <area/> + added test to check attribute
|
@micahgodbolt It looks like you added
Why would a consumer pass in |
dzearing
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused why we aren't using id instead of componentId. Added question to @micahgodbolt
|
@dzearing, @micahgodbolt if we set TextField's "id" property manually, Label's property "for" value inside the component will not be modifed and still have default one |
@dzearing, I fixed this issues |
+ Used TextField's id for the input id. If none is provided, default to a generated one. + For a custom rendering function creates a new props with a new id (this._id)
|
I believe with the merge of #3896 we can close this one. |
Pull request checklist
$ npm run changeDescription of changes