slider: Basic example doesn't even work

I’m on the latest version: 3.1.4 with react@0.14.2

I can’t get a simple basic slider to work without getting the following error:

Cannot read property 'toFixed' of undefined

Any clue what’s this about? I need to apparently set the marks props… but that won’t make it a basic slider right?

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 21 (9 by maintainers)

Commits related to this issue

Most upvoted comments

the slider doesn’t fire off an event object – like regular input tags. That would be preferred, so one could use e.target.name and e.target.value in handlers – especially when you have multiple sliders for different values.

2021 and I having the same old issue: Slider[max] - Slider[min] should be a multiple of Slider[step]

@cpruijsen

<Slider onChange={(v) => this.handleChange('name', v)} />