Skip to main content

Search and Top Navigation

#8892 closed bug (fixed)

Opened December 06, 2012 10:06PM UTC

Closed December 18, 2012 04:48PM UTC

Last modified December 18, 2012 04:50PM UTC

Slider: Multiple Sliders have Conflict with options.values

Reported by: dbarnes Owned by:
Priority: minor Milestone: 1.10.0
Component: ui.slider Version: 1.9.2
Keywords: Cc:
Blocked by: Blocking:
Description

Bit of an edge-case here, but a problem nonetheless. (I'll be submitting a PR via Github once I finish creating this ticket here)

Basically, if you initialize multiple range sliders at once, and you pass an array as the values option, the array that you use ends up being shared between all of the sliders that were initialized in that command. (because of it's object reference) When you move the handles of one slider, and move on to another, the handles jump around because of the conflict in options.values.

JSFiddle created with reproduction steps, Github PR incoming

Attachments (0)
Change History (4)

Changed December 07, 2012 02:51AM UTC by tj.vantoll comment:1

milestone: 1.10.01.11.0
status: newopen
summary: Multiple Sliders have Conflict with options.valuesSlider: Multiple Sliders have Conflict with options.values

Changed December 07, 2012 03:31AM UTC by dbarnes comment:2

Changed December 18, 2012 04:48PM UTC by Dominic Barnes comment:3

resolution: → fixed
status: openclosed

Slider: Create clone of options.values during _create(). Fixed #8892 - Multiple Sliders have Conflict with options.values.

Changeset: 209443d716587d896ffcdf26c0fd8c8a23437b3c

Changed December 18, 2012 04:50PM UTC by scottgonzalez comment:4

milestone: 1.11.01.10.0