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

Passing name attribute into switch component #2533

Merged

Conversation

webfella
Copy link

Summary

The name prop is being de-structured in the switch component but it unused. Because of this it's pulled out of ...rest being passed into the element attributes which we need in cloud as we use it in conjunction with Formik in some cases. Currently blocking https://github.com/elastic/cloud/pull/43440

Checklist

- [ ] Checked in dark mode
- [ ] Checked in mobile
- [ ] Checked in IE11 and Firefox
- [ ] Props have proper autodocs
- [ ] Added documentation examples
- [ ] Added or updated jest tests
- [ ] Checked for breaking changes and labeled appropriately
- [ ] Checked for accessibility including keyboard-only and screenreader modes

  • A changelog entry exists and is marked appropriately

Not sure if I add this to the changelog or not as it's not part of the public API? Also unsure if it's done as a part of this PR or later on once we know which release it's a part of so I'd love to know for future reference.

@webfella webfella self-assigned this Nov 15, 2019
Copy link
Contributor

@thompsongl thompsongl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@webfella

Not sure if I add this to the changelog or not as it's not part of the public API?

Yep. Add a changelog entry as part of this PR. This should be under a Bug fixes heading in the master section of the file

@bevacqua
Copy link
Contributor

Updated changelog

@bevacqua bevacqua merged commit 9be3f47 into elastic:master Nov 15, 2019
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

Successfully merging this pull request may close these issues.

3 participants