diff --git a/src/components/slider-prompt/slider-prompt.jsx b/src/components/slider-prompt/slider-prompt.jsx index b0fd45ed6..c6a3978b5 100644 --- a/src/components/slider-prompt/slider-prompt.jsx +++ b/src/components/slider-prompt/slider-prompt.jsx @@ -45,7 +45,6 @@ const SliderPromptComponent = props => ( type="text" value={props.minValue} onChange={props.onChangeMin} - onFocus={props.onFocus} onKeyPress={props.onKeyPress} /> @@ -60,7 +59,6 @@ const SliderPromptComponent = props => ( type="text" value={props.maxValue} onChange={props.onChangeMax} - onFocus={props.onFocus} onKeyPress={props.onKeyPress} /> @@ -97,7 +95,6 @@ SliderPromptComponent.propTypes = { onCancel: PropTypes.func.isRequired, onChangeMax: PropTypes.func.isRequired, onChangeMin: PropTypes.func.isRequired, - onFocus: PropTypes.func.isRequired, onKeyPress: PropTypes.func.isRequired, onOk: PropTypes.func.isRequired }; diff --git a/src/containers/slider-prompt.jsx b/src/containers/slider-prompt.jsx index cc6bd064c..879885828 100644 --- a/src/containers/slider-prompt.jsx +++ b/src/containers/slider-prompt.jsx @@ -27,9 +27,6 @@ class SliderPrompt extends React.Component { handleKeyPress (event) { if (event.key === 'Enter') this.handleOk(); } - handleFocus (event) { - event.target.select(); - } handleOk () { const {minValue, maxValue} = this.state; if (!this.validates(minValue, maxValue)) { @@ -64,7 +61,6 @@ class SliderPrompt extends React.Component { onCancel={this.handleCancel} onChangeMax={this.handleChangeMax} onChangeMin={this.handleChangeMin} - onFocus={this.handleFocus} onKeyPress={this.handleKeyPress} onOk={this.handleOk} />