Skip to content

Commit

Permalink
Sets tabIndex to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
goatslacker committed Aug 22, 2016
1 parent 8f42d00 commit e99d746
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
7 changes: 0 additions & 7 deletions README.md
Expand Up @@ -26,13 +26,6 @@ Custom class name that will be applied to the root of Rheostat.
className: PropTypes.string
```

The tab index to start the first handle on, by default 1. Successive handles will have a tabIndex
of consecutive increasing order.

```js
handleTabIndexStart: PropTypes.number
```

Custom React component overrides for both the handles, and the "progress" bar.

```js
Expand Down
6 changes: 1 addition & 5 deletions src/Slider.jsx
Expand Up @@ -28,8 +28,6 @@ export default React.createClass({
disabled: PropTypes.bool,
// a custom handle you can pass in
handle: PropTypeReactComponent,
// the tab index to start each handler on
handleTabIndexStart: PropTypes.number,
// the maximum possible value
max: PropTypes.number,
// the minimum possible value
Expand Down Expand Up @@ -71,7 +69,6 @@ export default React.createClass({
className: '',
disabled: false,
handle: 'div',
handleTabIndexStart: 1,
max: SliderConstants.PERCENT_FULL,
min: SliderConstants.PERCENT_EMPTY,
orientation: 'horizontal',
Expand Down Expand Up @@ -582,7 +579,6 @@ export default React.createClass({
children,
disabled,
handle: Handle,
handleTabIndexStart,
max,
min,
orientation,
Expand Down Expand Up @@ -618,7 +614,7 @@ export default React.createClass({
onTouchStart={!disabled && this.startTouchSlide}
role="slider"
style={handleStyle}
tabIndex={handleTabIndexStart + idx}
tabIndex={0}
/>
);
})}
Expand Down

0 comments on commit e99d746

Please sign in to comment.