Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rangeSlider initialize issue #369

Open
ste-haw opened this issue Sep 16, 2021 · 0 comments
Open

rangeSlider initialize issue #369

ste-haw opened this issue Sep 16, 2021 · 0 comments

Comments

@ste-haw
Copy link

ste-haw commented Sep 16, 2021

Hello!

I'm running a form that has hidden steps and all the rangeslider fields are within hidden steps.

This seems to cause issues. The slider initiates, but the slider looks something like this:

image

It only seems to go between the min value and the max value in 1 step, within that little space at the begging, rather than spanning the full width of the bar.

This is how I'm currently initiating it:

$('input[type="range"]').rangeslider({ polyfill : false, onInit : function() { this.output = $( '<div class="range-output" />' ).insertBefore( this.$range ).html( this.$element.val() ); this.output.html( "£" + this.$element.val() + ",000"); }, onSlide : function( position, value ) { this.output.html( "£" + value + ",000"); } });

Any help would be much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant