nouislider-angular icon indicating copy to clipboard operation
nouislider-angular copied to clipboard

more than 2 start values issues

Open raziza opened this issue 9 years ago • 7 comments

When having more than 2 values to our slider only first 2 are being synced.

Fix: 'equals' and createSlider methods should be changed to loop over the start values and not hard coded first and second items.

raziza avatar Jan 22 '17 11:01 raziza

Actually, I didn't know that nouislider supports more than 2 handles.

Yankovsky avatar Jan 23 '17 05:01 Yankovsky

Ok, it was added in 9.0.0 version and currently this lib supports ~8.5.1

Yankovsky avatar Jan 23 '17 05:01 Yankovsky

@Yankovsky While technically not b/w compatible (the DOM changes), upgrading to noUiSlider 9 should be hassle-free. There are no API changes.

leongersen avatar Jan 23 '17 08:01 leongersen

Yeah, I've changed this part in your code and nothing else and looks like it is working fine (so far).

raziza avatar Jan 23 '17 11:01 raziza

Same problem here. As @raziza said you have to change the values in a loop in update function (line 78). In addition you have to write a new equals function (line 14), for example here

Are you planning for an updated release?

kikitsa avatar Aug 29 '17 10:08 kikitsa

@raziza as I understand you've solved this issue. Can you create pr?

Yankovsky avatar May 17 '19 07:05 Yankovsky

@kikitsa @leongersen Do you still need help with that issue?

Yankovsky avatar May 17 '19 07:05 Yankovsky