Commit af766f4e authored by Valentin Hervieu's avatar Valentin Hervieu

Fix tick class when not selected

parent 008d1ad7
...@@ -671,7 +671,7 @@ function throttle(func, wait, options) { ...@@ -671,7 +671,7 @@ function throttle(func, wait, options) {
var positions = ''; var positions = '';
for (var i = this.minValue; i <= this.maxValue; i += this.step) { for (var i = this.minValue; i <= this.maxValue; i += this.step) {
var selectedClass = this.isTickSelected(i) ? 'selected': false; var selectedClass = this.isTickSelected(i) ? 'selected': '';
positions += '<li class="tick '+ selectedClass +'">'; positions += '<li class="tick '+ selectedClass +'">';
if(this.showTicksValue) if(this.showTicksValue)
positions += '<span class="tick-value">'+ this.getDisplayValue(i) +'</span>'; positions += '<span class="tick-value">'+ this.getDisplayValue(i) +'</span>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment