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

docs(checkbox): Fix indeterminate button in JS checkbox demo #374

Merged
merged 2 commits into from
Mar 3, 2017

Conversation

traviskaufman
Copy link
Contributor

The "Make Indeterminate" button in the JS checkbox demo is currently not
working because the "indeterminate" property is being set on the
checkbox root element, rather than the native instance. This commit
fixes that.

Skipping TravisCI as this is a change to the demo only.

[ci skip]

@traviskaufman traviskaufman requested a review from amsheehan March 2, 2017 20:34
@anton-kachurin
Copy link
Contributor

@traviskaufman Shouldn't be MDCCheckbox instance 'indeterminate' setter used instead?

    document.getElementById('make-ind').addEventListener('click', function() {
      checkboxInstance.indeterminate = true;
    });

@traviskaufman
Copy link
Contributor Author

@anton-kachurin definitely :) Obviously I rushed this PR out. Nice catch!

Copy link
Contributor

@amsheehan amsheehan left a comment

Choose a reason for hiding this comment

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

Make the change referenced in the thread and slam that Rebase and Merge button!

document.getElementById('make-ind').addEventListener('click', function() {
checkbox.indeterminate = true;
nativeCheckbox.indeterminate = true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should use setter for instance of MDCheckbox.

Other than that LGTM

The "Make Indeterminate" button in the JS checkbox demo is currently not
working because the "indeterminate" property is being set on the
checkbox _root_ element, rather than the native instance. This commit
fixes that.

Skipping TravisCI as this is a change to the demo only.

[ci skip]
@traviskaufman traviskaufman force-pushed the docs/checkbox-demo-fix branch from 1e3aea3 to 188626a Compare March 3, 2017 18:30
@traviskaufman traviskaufman merged commit 4bfda34 into master Mar 3, 2017
@traviskaufman traviskaufman deleted the docs/checkbox-demo-fix branch March 3, 2017 19:38
cristobalchao pushed a commit that referenced this pull request Mar 14, 2017
The "Make Indeterminate" button in the JS checkbox demo is currently not
working because the "indeterminate" property is being set on the
checkbox _root_ element, rather than the native instance. This commit
fixes that.

Skipping TravisCI as this is a change to the demo only.

[ci skip]
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