Skip to content

Commit

Permalink
Fix bug in checkbox (#1110)
Browse files Browse the repository at this point in the history
* Fix bug in checkbox

* Update changelog
  • Loading branch information
bevacqua authored Aug 10, 2018
1 parent 5602a7d commit 0379a8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## [`master`](https://github.com/elastic/eui/tree/master)

No public interface changes since `3.5.0`.
- Fixed a bug around `indeterminate` checkboxes ([#1110](https://github.com/elastic/eui/pull/1110))

## [`3.5.0`](https://github.com/elastic/eui/tree/v3.5.0)

Expand Down
8 changes: 4 additions & 4 deletions src/components/form/checkbox/checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ export class EuiCheckbox extends Component {
this.props.inputRef(input);
}

if (input) {
this.invalidateIndeterminate();
}
this.invalidateIndeterminate();
}

invalidateIndeterminate() {
this.inputRef.indeterminate = this.props.indeterminate;
if (this.inputRef) {
this.inputRef.indeterminate = this.props.indeterminate;
}
}
}

Expand Down

0 comments on commit 0379a8f

Please sign in to comment.