Skip to content

Commit 27f49f0

Browse files
committed
Slider: use also option text as title
1 parent 3442eb8 commit 27f49f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/jquery.mobile.forms.slider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ $.widget( "mobile.slider", $.mobile.widget, {
315315
this.handle.attr( {
316316
"aria-valuenow": cType === "input" ? newval : control.find( "option" ).eq( newval ).attr( "value" ),
317317
"aria-valuetext": cType === "input" ? newval : control.find( "option" ).eq( newval ).getEncodedText(),
318-
title: newval
318+
title: cType === "input" ? newval : control.find( "option" ).eq( newval ).getEncodedText()
319319
});
320320

321321
// add/remove classes for flip toggle switch

0 commit comments

Comments
 (0)