Skip to content

Commit

Permalink
Fixed #743 - Spinner arrow keys not working
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Jan 22, 2019
1 parent 4df2bae commit e879098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/spinner/Spinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,11 @@ export class Spinner extends Component {

onInputKeyDown(event) {
if (event.which === 38) {
this.spin(1);
this.spin(event, 1);
event.preventDefault();
}
else if (event.which === 40) {
this.spin(-1);
this.spin(event, -1);
event.preventDefault();
}
}
Expand Down

0 comments on commit e879098

Please sign in to comment.