Skip to content
This repository

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  js/jquery.mobile.forms.slider.js
2  js/jquery.mobile.forms.slider.js
@@ -269,7 +269,7 @@ $.widget( "mobile.slider", $.mobile.widget, {
269 269
 			percent = Math.round( ( ( data.pageX - this.slider.offset().left ) / this.slider.width() ) * 100 );
270 270
 		} else {
271 271
 			if ( val == null ) {
272  
-				val = cType === "input" ? parseFloat( control.val() ) : control[0].selectedIndex;
  272
+				val = cType === "input" ? parseFloat( control.val() || 0 ) : control[0].selectedIndex;
273 273
 			}
274 274
 			percent = ( parseFloat( val ) - min ) / ( max - min ) * 100;
275 275
 		}

0 notes on commit cbaa42d

Please sign in to comment.
Something went wrong with that request. Please try again.