seiyria / bootstrap-slider

A slider control for Bootstrap 3 & 4.
http://seiyria.github.io/bootstrap-slider/
Other
3k stars 1.14k forks source link

Hiding the tooltip doesn't seem to work #847

Closed euoia closed 5 years ago

euoia commented 6 years ago

From the documentation it sounds like it should be possible to hide the tooltip with slider.setAttribute('tooltip', 'hide') but this doesn't seem to be working for me.

I would like the tooltip to be hidden when the slider is disabled.

Here's a JSFiddle: https://jsfiddle.net/qhe1m9cf/7/

jespirit commented 5 years ago

You have to call slider.refresh() after setting the new option(s), which will construct a new Slider object using any new options you've set.

JSFiddle (forked): https://jsfiddle.net/1xbLnwra/