From 32fb5b13fb41fa96c3c864c8f1a3dc6f5f58ff3e Mon Sep 17 00:00:00 2001 From: Chris Oyler Date: Mon, 14 Dec 2015 13:25:15 -0800 Subject: [PATCH] fixes issue with Slider plugin improperly filling in with two handles. Fixes #7351 #7311 --- js/foundation.slider.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/foundation.slider.js b/js/foundation.slider.js index 2e3de6d9d..5211bbdeb 100644 --- a/js/foundation.slider.js +++ b/js/foundation.slider.js @@ -241,7 +241,8 @@ css['min-' + hOrW] = dim; if(cb && typeof cb === 'function'){ cb(); } }else{ - location = (location < 100 ? location : 100) - (parseFloat(this.$handle[0].style.left) || this.options.end - location); + var handleLeft = parseFloat(this.$handle[0].style.left); + location = (location < 100 ? location : 100) - (!isNaN(handleLeft) ? handleLeft : this.options.end - location); css['min-' + hOrW] = location + '%'; } } -- 2.47.2