tajo / react-range

🎚️Range input with a slider. Accessible. Bring your own styles and markup.
https://react-range.pages.dev
MIT License
859 stars 97 forks source link

Keyboard navigation does not work when direction is set to "right to left" #158

Closed brennanho closed 3 months ago

brennanho commented 2 years ago

Looks like keyboard navigation works fine for "Left to right" but when you change direction to "right to left", the keyboard events do not reverse. For example, pressing the left arrow key on "right to left" should go right but instead it goes left. I'm guessing we can just reverse keyboard keys when the direction changes to "right to left"?

tajo commented 3 months ago

repro https://stackblitz.com/edit/react-range-edit?file=src%2FApp.tsx?