🐛 le onKey provoquait un saut du curseur à la fin de la saisie

pull/540/head
Mael 2019-05-17 10:51:41 +02:00
parent 2656cfeb59
commit 3ec3311f12
2 changed files with 0 additions and 5 deletions

View File

@ -47,9 +47,6 @@ class CurrencyInput extends Component {
this.input.current.selectionEnd = cursorPosition
this.adaptInputSize()
}
focusInput = () => {
this.input.current.focus()
}
handleChange = event => {
let value = event.target.value
value = value
@ -77,7 +74,6 @@ class CurrencyInput extends Component {
return (
<div
onClick={this.focusInput}
className={classnames(
this.props.className,
'currencyInput__container'

View File

@ -250,7 +250,6 @@ let CurrencyField = withColours(props => {
}}
debounce={600}
className="targetInput"
key={props.input.value}
defaultValue={props.input.value}
{...props.input}
{...props}