Skip to content

Commit af766f4

Browse files
author
Valentin Hervieu
committed
Fix tick class when not selected
1 parent 008d1ad commit af766f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rzslider.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ function throttle(func, wait, options) {
671671

672672
var positions = '';
673673
for (var i = this.minValue; i <= this.maxValue; i += this.step) {
674-
var selectedClass = this.isTickSelected(i) ? 'selected': false;
674+
var selectedClass = this.isTickSelected(i) ? 'selected': '';
675675
positions += '<li class="tick '+ selectedClass +'">';
676676
if(this.showTicksValue)
677677
positions += '<span class="tick-value">'+ this.getDisplayValue(i) +'</span>';

0 commit comments

Comments
 (0)