Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hungvu193 committed Dec 7, 2022
1 parent da7be3b commit fce96b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Checkbox extends React.Component {

const wasChecked = this.props.isChecked;

// Make sure the checkbox gets unfocused when it's about to be unselected
// If checkbox is checked and focused, make sure it's unfocused when pressed.
if (this.state.isFocused && wasChecked) {
this.onBlur();
}
Expand Down

0 comments on commit fce96b1

Please sign in to comment.