chore(build): fix range

This commit is contained in:
Brandy Carney
2019-03-06 12:15:47 -05:00
parent dfb0c7f3c1
commit 3a19329dbd

View File

@ -488,8 +488,7 @@ interface RangeKnob {
handleKeyboard: (name: KnobName, isIncrease: boolean) => void;
}
function renderKnob({ knob, value, ratio, min, max, disabled, pressed, pin, handleKeyboard }: RangeKnob) {
const isRTL = document.dir === 'rtl';
function renderKnob(isRTL: boolean, { knob, value, ratio, min, max, disabled, pressed, pin, handleKeyboard }: RangeKnob) {
const start = isRTL ? 'right' : 'left';
const knobStyle = () => {