From 1b4d03b4dcbf9c1da8d4d4a8b62410e613a0bedc Mon Sep 17 00:00:00 2001 From: Brandon Hines Date: Thu, 14 Dec 2017 16:04:32 -0600 Subject: [PATCH] Make sure to call onSlideEnd after an API call to change slider value --- src/rangeslider.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rangeslider.js b/src/rangeslider.js index 48cf81a..45311b4 100644 --- a/src/rangeslider.js +++ b/src/rangeslider.js @@ -277,6 +277,10 @@ var value = e.target.value, pos = _this.getPositionFromValue(value); _this.setPosition(pos); + + if (_this.onSlideEnd && typeof _this.onSlideEnd === 'function') { + _this.onSlideEnd(pos, _this.value); + } }); }