diff --git a/core/src/components/range/range.tsx b/core/src/components/range/range.tsx index 618bbd1084..0c10972b41 100644 --- a/core/src/components/range/range.tsx +++ b/core/src/components/range/range.tsx @@ -488,7 +488,8 @@ interface RangeKnob { handleKeyboard: (name: KnobName, isIncrease: boolean) => void; } -function renderKnob(isRTL: boolean, { knob, value, ratio, min, max, disabled, pressed, pin, handleKeyboard }: RangeKnob) { +function renderKnob({ knob, value, ratio, min, max, disabled, pressed, pin, handleKeyboard }: RangeKnob) { + const isRTL = document.dir === 'rtl'; const start = isRTL ? 'right' : 'left'; const knobStyle = () => { diff --git a/core/src/components/range/readme.md b/core/src/components/range/readme.md index 754a727c43..ca9655cb49 100644 --- a/core/src/components/range/readme.md +++ b/core/src/components/range/readme.md @@ -83,83 +83,6 @@ left or right of the range. ``` -### React - -```tsx -import React from 'react'; - -import { IonList, IonItem, IonRange, IonLabel, IonIcon } from '@ionic/react'; - -const Example: React.SFC<{}> = () => ( - - - - - - - - - -200 - 200 - - - - - - - - - - - - - - - - - - -); - -export default Example; -``` - - -### Vue - -```html - -``` - - ## Properties