Skip to content

Commit

Permalink
Fixed issue: Slider reset button not working as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed May 7, 2018
1 parent b3fd6c4 commit eaa60cf
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -98,7 +98,7 @@ var LSSlider = function (options) {
value = value || position;
sliderObject.setValue(position, true, true);
elementObject.val(value.toString().replace('.', separator)).trigger('keyup');
writeToRootElement(displayValue);
writeToRootElement(value);
triggerChanges();
},

Expand All @@ -119,7 +119,8 @@ var LSSlider = function (options) {
return sliderSettings;
},
bindResetAction = function () {
$('#answer' + elementName + '_resetslider').on('click', function (e) {
console.ls.log('wiring reset slider:', '#answer' + rootElementName + '_resetslider');
$('#answer' + rootElementName + '_resetslider').on('click', function (e) {
e.preventDefault();
/* Position slider button at position */
listItemObject.find('.slider-container').removeClass('slider-touched').addClass('slider-reset');
Expand Down

0 comments on commit eaa60cf

Please sign in to comment.