-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix: [RAC] Checkbox applies data attributes to both the input and the label #7151
fix: [RAC] Checkbox applies data attributes to both the input and the label #7151
Conversation
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.
Thanks for this!
<input {...mergeProps(inputProps, focusProps)} ref={inputRef} /> | ||
<input | ||
// data attribute should only go to the outermost dom | ||
{...mergeProps(removeDataAttributes(inputProps), focusProps)} |
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.
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.
ok, I will try that soon :)
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.
Thanks for the review!
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.
lgtm! thanks for the test
… label (#7151) * applies data attributes to label (not input) * not to propagate the data attributes to inputProps
Closes
✅ Pull Request Checklist:
📝 Test Instructions:
🧢 Your Project: