Skip to content

Commit

Permalink
fix(mobile): range-editor not working on mobile (#899)
Browse files Browse the repository at this point in the history
  • Loading branch information
psi-4ward committed Oct 1, 2021
1 parent e59e489 commit a78aa85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/range-editor/range-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const RangeEditor: FunctionComponent<RangeProps & Omit<InputHTMLAttributes<HTMLI
className="form-range form-control border-0"
value={currentValue}
onChange={e => setCurrentValue(e.target.valueAsNumber)}
onTouchEnd={(() => onChange(currentValue))}
onMouseUp={(() => onChange(currentValue))}
{...rest}
/> : null}
Expand Down

0 comments on commit a78aa85

Please sign in to comment.