Skip to content

Commit b9eb972

Browse files
utkarsh22gargapollonian
authored andcommitted
Minor fixes done in #38
1 parent 687b948 commit b9eb972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class OtpInput extends Component<Props, State> {
214214
} else if (e.keyCode === RIGHT_ARROW || e.key === 'ArrowRight') {
215215
e.preventDefault();
216216
this.focusNextInput();
217-
} else if (e.keyCode === SPACEBAR || e.key === 'Space' ) {
217+
} else if (e.keyCode === SPACEBAR || e.key === 'Space' || e.key === ' ' || e.key === 'Spacebar') {
218218
e.preventDefault();
219219
}
220220
};

0 commit comments

Comments
 (0)