bootstrap-slider icon indicating copy to clipboard operation
bootstrap-slider copied to clipboard

Can not set value to 0 (data-slider-value="0" not working)

Open gudh opened this issue 12 years ago • 11 comments

Other values work well except 0, it'll show the default "5"

gudh avatar Dec 23 '13 02:12 gudh

This should have been fixed in #55. Are you using the latest?

seiyria avatar Dec 23 '13 02:12 seiyria

Thanks for your info :+1:

And I am using bower to install it, let me take a look, it's "seiyria-bootstrap-slider": "~1.9.0"

gudh avatar Dec 23 '13 03:12 gudh

Ah, that's probably the problem then. Let me make a new tag in bower and I'll give you a quick update.

seiyria avatar Dec 23 '13 03:12 seiyria

Thanks :)

gudh avatar Dec 23 '13 03:12 gudh

There, you should now be able to update to 1.9.5. Let me know if it's still giving you problems!

seiyria avatar Dec 23 '13 03:12 seiyria

ok, I'll try it out now

Thank you so much :smile:

gudh avatar Dec 23 '13 03:12 gudh

Yeah, it works now :smiley:

gudh avatar Dec 23 '13 03:12 gudh

Great. Enjoy!

seiyria avatar Dec 23 '13 04:12 seiyria

I am using bootstrap-slider.js v3.0.0 and I have the same problem. I manually include JS and CSS files. value = '0' doesn't work

ventouris avatar Apr 09 '14 06:04 ventouris

Can you show a fiddle, @ventouris?

seiyria avatar Apr 09 '14 14:04 seiyria

i have also faced the same issue and after reading the comments i thought to update the slider, which is the best option. But if someone needs the same version for some reason there is a part of the script towards the end of the bootstrap-slider.js $.fn.slider.defaults = { min: 0, max: 10, step: 1, orientation: 'horizontal', value: 5, selection: 'before', tooltip: 'show', handle: 'round', formater: function(value) { return value; } };

if you see this is the default value when the slider is initiated and here "value:5" because of this the default value is taking as 5 so change it to "value:0" that's it it started working for me. :)

MidhunHaridas avatar Jan 05 '17 05:01 MidhunHaridas