-
Notifications
You must be signed in to change notification settings - Fork 26
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
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.
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, |
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.
Is this a bool or object?
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.
it was set as a bool in the existing defaultProps
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.
It can either be an array of objects (options) or a boolean, see react-select
docs.
c4ad203
to
55f7fe3
Compare
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
onSwitch
,RadioOption
andCheckbox
to the underlying input.