developergovindgupta / multi-range-slider-react-ts

single component to select range value from slider with no other dependency.
14 stars 9 forks source link

Component doesn't work in a RTL environment #8

Open indicava opened 3 months ago

indicava commented 3 months ago

When using a RTL layout for right-to-left written languages (Arabic, Hebrew, etc.) in the HTML documents, the component doesn't behave correctly. The sliding of the range inputs works inversely to the position.

change the tag in any of the CodeSandbox examples in /public/index.html

to: <html lang="ar" dir="rtl">

to see what I mean.