From c234a2b24f10d69f97c46574ad8518d22b1f4182 Mon Sep 17 00:00:00 2001 From: Tatiana Kiseleva Date: Fri, 18 Dec 2020 07:12:54 +0000 Subject: [PATCH] #15262: Correct logic for cover tests. --- ui/widgets/slider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/widgets/slider.js b/ui/widgets/slider.js index 12250e9bf..916a1f2c6 100644 --- a/ui/widgets/slider.js +++ b/ui/widgets/slider.js @@ -556,7 +556,7 @@ return $.widget( "ui.slider", $.ui.mouse, { max = parseFloat( max.toFixed( this._precision() ) ); var optionMax = parseFloat( this.options.max.toFixed( this._precision() ) ); - if ( this.options.includeMax ) { + if ( this.options.includeMax && this.options.includeMax === true) { if ( max < optionMax ) { // If max is not divisible by step and max from options