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

Added indeterminate feature #17

Merged
merged 2 commits into from
Apr 14, 2016
Merged

Conversation

alex-e-leon
Copy link
Contributor

Added the indeterminate prop to enhancedSwitch which adds the
appropriate indeterminate class and then attempts to set the input to
indeterminate onMount and onUpdate.
See facebook/react#1798 for discussion about setting indeterminate with react.

Added the indeterminate prop to enhancedSwitch which adds the
appropriate indeterminate class and then attempts to set the input to
indeterminate onMount and onUpdate.
@luqin
Copy link
Owner

luqin commented Apr 14, 2016

CI checks have failed

@alex-e-leon
Copy link
Contributor Author

Ran the linter and tests and fixed it.

@luqin luqin merged commit a7ae4b4 into luqin:master Apr 14, 2016
key: 'setIndeterminate',
value: function setIndeterminate() {
if (this.props.indeterminate) {
this.refs.checkbox.indetermiante = true;

Choose a reason for hiding this comment

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

"indetermiante"? This is broken -- there is no "indetermiante" property on dom checkbox elements. Now, "indeterminate" is a different story...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dclowd9901 Good catch. This is what happens when you have to write indeterminate way too may times. Created a PR to fix it

Choose a reason for hiding this comment

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

Happy to help :) using a self made polyfill now, so I'm def looking forward to this.

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