From 2f56892fc0fa44a7eba08d66ff75bbdbdfcd32f5 Mon Sep 17 00:00:00 2001 From: adirzoari Date: Mon, 5 Oct 2020 17:19:10 +0300 Subject: [PATCH 1/2] Update Rangeslider.js --- src/Rangeslider.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Rangeslider.js b/src/Rangeslider.js index 9bd8aa1..0ad589c 100755 --- a/src/Rangeslider.js +++ b/src/Rangeslider.js @@ -52,7 +52,9 @@ class Slider extends Component { tooltip: true, reverse: false, labels: {}, - handleLabel: '' + handleLabel: '', + tabIndex: 0 + }; constructor (props, context) { @@ -287,7 +289,8 @@ class Slider extends Component { labels, min, max, - handleLabel + handleLabel, + tabIndex } = this.props const { active } = this.state const dimension = constants.orientation[orientation].dimension @@ -358,7 +361,7 @@ class Slider extends Component { onTouchEnd={this.handleEnd} onKeyDown={this.handleKeyDown} style={handleStyle} - tabIndex={0} + tabIndex={tabIndex} > {showTooltip ?
Date: Mon, 5 Oct 2020 17:22:31 +0300 Subject: [PATCH 2/2] Update Rangeslider.js --- src/Rangeslider.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Rangeslider.js b/src/Rangeslider.js index 0ad589c..648c93f 100755 --- a/src/Rangeslider.js +++ b/src/Rangeslider.js @@ -40,7 +40,9 @@ class Slider extends Component { format: PropTypes.func, onChangeStart: PropTypes.func, onChange: PropTypes.func, - onChangeComplete: PropTypes.func + onChangeComplete: PropTypes.func, + tabIndex: PropTypes.number, + }; static defaultProps = {