Skip to main content

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 rdworth comment:1

version: 1.8.161.8.13

Changed November 30, 2011 08:35PM UTC by rdworth comment:2

Caused by #7259

Changed October 11, 2012 02:53PM UTC by scottgonzalez comment:3

milestone: 1.9.01.11.0

Changed October 15, 2012 04:38PM UTC by tj.vantoll comment:4

status: newopen

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 petersendidit comment:5

owner: → petersendidit
status: openassigned

Changed October 16, 2012 06:07PM UTC by petersendidit comment:6

Changed October 18, 2012 12:11AM UTC by David Petersen comment:7

resolution: → fixed
status: assignedclosed

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 scottgonzalez comment:8

milestone: 1.11.01.9.1