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

fix(radio-option, checkbox, switch): move data-attributes to input #423

Merged
merged 4 commits into from
Jan 10, 2019

Conversation

montezume
Copy link
Contributor

Summary

If you run yarn lint on the master branch, we get a bunch of errors.

This PR fixes those errors.

It also moves the filter-data-attributes on Switch, RadioOption and Checkbox to the underlying input.

@montezume montezume self-assigned this Jan 10, 2019
Copy link
Contributor

@tdeekens tdeekens left a comment

Choose a reason for hiding this comment

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

I guess the fact that data-* will now be applied elsewhere won't break any (or few) tests.

@@ -18,6 +18,9 @@ class TestComponent extends React.Component {
props,
...rest
),
loadOptions: PropTypes.func,
defaultOptions: PropTypes.bool,
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a bool or object?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it was set as a bool in the existing defaultProps

Copy link
Contributor

Choose a reason for hiding this comment

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

It can either be an array of objects (options) or a boolean, see react-select docs.

@montezume montezume merged commit 677dc77 into master Jan 10, 2019
@montezume montezume deleted the ml-fix-warnings branch January 10, 2019 16:49
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