diff options
author | Scott González <scott.gonzalez@gmail.com> | 2016-09-02 10:21:25 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2016-09-13 08:41:33 -0400 |
commit | 51461d523868c168f2e12eeb547c1cf8b7cf59cf (patch) | |
tree | 152e7c29153c4ef8d69444a39a3e1a2172fca2ea /ui/widgets | |
parent | 57bff499deb880dd500be503231853c97b317234 (diff) | |
download | jquery-ui-51461d523868c168f2e12eeb547c1cf8b7cf59cf.tar.gz jquery-ui-51461d523868c168f2e12eeb547c1cf8b7cf59cf.zip |
Slider: Add demo for custom handle
Fixes #15023
Closes gh-1740
Diffstat (limited to 'ui/widgets')
-rw-r--r-- | ui/widgets/slider.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/widgets/slider.js b/ui/widgets/slider.js index 4c1bdc05e..8b0f907f5 100644 --- a/ui/widgets/slider.js +++ b/ui/widgets/slider.js @@ -117,7 +117,9 @@ return $.widget( "ui.slider", $.ui.mouse, { this.handle = this.handles.eq( 0 ); this.handles.each( function( i ) { - $( this ).data( "ui-slider-handle-index", i ); + $( this ) + .data( "ui-slider-handle-index", i ) + .attr( "tabIndex", 0 ); } ); }, |