Skip to content

Commit 0ae9f98

Browse files
authored
Merge pull request react-toolbox#1834 from dylanseago/slider-disabled-tabindex
Set Slider tabIndex to -1 when disabled
2 parents 46ecedb + 4a5957b commit 0ae9f98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/slider/Slider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ const factory = (ProgressBar, Input) => {
294294
onBlur={this.handleSliderBlur}
295295
onFocus={this.handleSliderFocus}
296296
style={this.props.style}
297-
tabIndex="0"
297+
tabIndex={this.props.disabled ? -1 : 0}
298298
>
299299
<div
300300
ref={(node) => { this.sliderNode = node; }}

0 commit comments

Comments
 (0)