From 20afb9e10e408c8cb5aad87541f9e357e603fd07 Mon Sep 17 00:00:00 2001 From: Brian Stone Date: Fri, 26 Apr 2019 11:49:51 -0700 Subject: [PATCH] fix: add IE11 arrow key support --- src/components/ReactSlider/ReactSlider.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/ReactSlider/ReactSlider.jsx b/src/components/ReactSlider/ReactSlider.jsx index cbd35eb4..ee0968de 100644 --- a/src/components/ReactSlider/ReactSlider.jsx +++ b/src/components/ReactSlider/ReactSlider.jsx @@ -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;