From ba00d9daafc191e89e0c1b826e35aa8fe0c6885f Mon Sep 17 00:00:00 2001 From: notJackson Date: Fri, 27 Oct 2017 18:58:41 +0200 Subject: [PATCH] Bug fix Looks like a copy paste mistake Please update docs to reflect this change as this will not work otherwise --- slider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slider.js b/slider.js index e890da8..e06ca51 100644 --- a/slider.js +++ b/slider.js @@ -45,7 +45,7 @@ document.addEventListener( 'DOMContentLoaded', function () { [].forEach.call( sliders, function ( slider ) { var output = findOutputForSlider( slider ); if ( output ) { - if ( slider.classList.contains( 'has-output-tooltip' ) ) { + if ( output.contains( 'has-output-tooltip' ) ) { // Get new output position var newPosition = getSliderOutputPosition( slider );