Skip to content

Commit 37ba262

Browse files
authored
Merge pull request #12378 from rickcurran/develop
FIX difference in behaviour between mouse & keyboard interactions on Sliders
2 parents a477d24 + b9106f0 commit 37ba262

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/foundation.slider.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ class Slider extends Plugin {
521521
$handle.off('keydown.zf.slider').on('keydown.zf.slider', function(e) {
522522
var _$handle = $(this),
523523
idx = _this.options.doubleSided ? _this.handles.index(_$handle) : 0,
524-
oldValue = parseFloat(_this.inputs.eq(idx).val()),
524+
oldValue = parseFloat($handle.attr('aria-valuenow')),
525525
newValue;
526526

527527
// handle keyboard event with keyboard util

0 commit comments

Comments
 (0)