File tree Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,6 @@ const SliderPromptComponent = props => (
45
45
type = "text"
46
46
value = { props . minValue }
47
47
onChange = { props . onChangeMin }
48
- onFocus = { props . onFocus }
49
48
onKeyPress = { props . onKeyPress }
50
49
/>
51
50
</ Box >
@@ -60,7 +59,6 @@ const SliderPromptComponent = props => (
60
59
type = "text"
61
60
value = { props . maxValue }
62
61
onChange = { props . onChangeMax }
63
- onFocus = { props . onFocus }
64
62
onKeyPress = { props . onKeyPress }
65
63
/>
66
64
</ Box >
@@ -97,7 +95,6 @@ SliderPromptComponent.propTypes = {
97
95
onCancel : PropTypes . func . isRequired ,
98
96
onChangeMax : PropTypes . func . isRequired ,
99
97
onChangeMin : PropTypes . func . isRequired ,
100
- onFocus : PropTypes . func . isRequired ,
101
98
onKeyPress : PropTypes . func . isRequired ,
102
99
onOk : PropTypes . func . isRequired
103
100
} ;
Original file line number Diff line number Diff line change @@ -27,9 +27,6 @@ class SliderPrompt extends React.Component {
27
27
handleKeyPress ( event ) {
28
28
if ( event . key === 'Enter' ) this . handleOk ( ) ;
29
29
}
30
- handleFocus ( event ) {
31
- event . target . select ( ) ;
32
- }
33
30
handleOk ( ) {
34
31
const { minValue, maxValue} = this . state ;
35
32
if ( ! this . validates ( minValue , maxValue ) ) {
@@ -64,7 +61,6 @@ class SliderPrompt extends React.Component {
64
61
onCancel = { this . handleCancel }
65
62
onChangeMax = { this . handleChangeMax }
66
63
onChangeMin = { this . handleChangeMin }
67
- onFocus = { this . handleFocus }
68
64
onKeyPress = { this . handleKeyPress }
69
65
onOk = { this . handleOk }
70
66
/>
You can’t perform that action at this time.
0 commit comments