Skip to content

Commit

Permalink
Fixed == in enhanced-switch.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkruder committed Jul 9, 2015
1 parent ff340bd commit 31d9695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/enhanced-switch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ let EnhancedSwitch = React.createClass({
// Checkbox inputs only use SPACE to change their state. Using ENTER will
// update the ui but not the input.
_handleWindowKeydown(e) {
if (e.keyCode == KeyCode.TAB) {
if (e.keyCode === KeyCode.TAB) {
this._tabPressed = true;
}
if (e.keyCode === KeyCode.SPACE && this.state.isKeyboardFocused) {
Expand Down

0 comments on commit 31d9695

Please sign in to comment.