Skip to content

Commit b449d81

Browse files
Fix spinner event in example
1 parent 7318a3d commit b449d81

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,13 +663,15 @@ <h3 id="slider_examples">Slider Modifications</h3>
663663
max: max,
664664
step: step,
665665
change: function(e,ui){ // key events
666-
tp_inst._onTimeChange();
666+
// don't call if api was used and not key press
667+
if(e.originalEvent !== undefined)
668+
tp_inst._onTimeChange();
667669
tp_inst._onSelectHandler();
668670
},
669671
spin: function(e,ui){ // spin events
670672
tp_inst.control.value(tp_inst, obj, unit, ui.value);
671673
tp_inst._onTimeChange();
672-
tp_inst._onSelectHandler();
674+
//tp_inst._onSelectHandler();
673675
}
674676
});
675677
return obj;

0 commit comments

Comments
 (0)