Search and Top Navigation
#7922 closed bug (fixed)
Opened November 30, 2011 02:19PM UTC
Closed October 18, 2012 12:11AM UTC
Last modified October 18, 2012 12:11AM UTC
Slider with range doesn't work if values are not set
Reported by: | Mamen | Owned by: | petersendidit |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.1 |
Component: | ui.slider | Version: | 1.8.13 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
If a slider object is created with the options {range: true, values: null}, only one handle is present. If option "values" are specified two handles appears like expected. It doesn't support values = null which is the default option.
I'm not able to create ANY visible sliders on jsFiddle, but the code should be easy:
$("#selector").slider({range: true});
According to Coding standards:
Plugins must work regardless of what options are passed to init. All options are truly optional and may be changed at any time.
Attachments (0)
Change History (8)
Changed November 30, 2011 08:07PM UTC by comment:1
version: | 1.8.16 → 1.8.13 |
---|
Changed October 11, 2012 02:53PM UTC by comment:3
milestone: | 1.9.0 → 1.11.0 |
---|
Changed October 15, 2012 04:38PM UTC by comment:4
status: | new → open |
---|
I can verify that this is still an issue in 1.9 - http://jsfiddle.net/tj_vantoll/7SgsX/. Here's an example showing not passing in values working with 1.7.3 - http://jsfiddle.net/tj_vantoll/9CSxm/.
Changed October 16, 2012 06:05PM UTC by comment:5
owner: | → petersendidit |
---|---|
status: | open → assigned |
Changed October 16, 2012 06:07PM UTC by comment:6
Pull request to fix this: https://github.com/jquery/jquery-ui/pull/766
Changed October 18, 2012 12:11AM UTC by comment:7
resolution: | → fixed |
---|---|
status: | assigned → closed |
Slider: Count the handles after setting up a range. Fixes #7922 - Slider with range doesn't work if values are not set.
Changeset: dda1925d0f8d19b4baffa20259674dcef85e8bab
Changed October 18, 2012 12:11AM UTC by comment:8
milestone: | 1.11.0 → 1.9.1 |
---|