Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit a067c40

Browse files
author
Alexander Schmitz
committed
Slider: Move triggering before change to fix regression with highlight breaking out on track click with rangeslider.
1 parent 236cc14 commit a067c40

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

js/widgets/forms/slider.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -483,12 +483,11 @@ $.widget( "mobile.slider", $.mobile.widget, {
483483
valueChanged = control[ 0 ].selectedIndex !== newval;
484484
control[ 0 ].selectedIndex = newval;
485485
}
486-
if ( !isfromControl && valueChanged ) {
487-
if ( this._trigger( "beforechange", event ) === false) {
486+
if ( this._trigger( "beforechange", event ) === false) {
488487
return false;
489-
}
488+
}
489+
if ( !isfromControl && valueChanged ) {
490490
control.trigger( "change" );
491-
492491
}
493492
}
494493
},

0 commit comments

Comments
 (0)