Skip to content

Commit

Permalink
fix: add IE11 arrow key support
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Stone authored and stonebk committed Sep 27, 2019
1 parent 94712f2 commit 20afb9e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/ReactSlider/ReactSlider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -402,11 +402,15 @@ class ReactSlider extends React.Component {
switch (e.key) {
case 'ArrowLeft':
case 'ArrowDown':
case 'Left':
case 'Down':
e.preventDefault();
this.moveDownByStep();
break;
case 'ArrowRight':
case 'ArrowUp':
case 'Right':
case 'Up':
e.preventDefault();
this.moveUpByStep();
break;
Expand Down

0 comments on commit 20afb9e

Please sign in to comment.