🐛 le onKey provoquait un saut du curseur à la fin de la saisie
parent
2656cfeb59
commit
3ec3311f12
|
@ -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'
|
||||
|
|
|
@ -250,7 +250,6 @@ let CurrencyField = withColours(props => {
|
|||
}}
|
||||
debounce={600}
|
||||
className="targetInput"
|
||||
key={props.input.value}
|
||||
defaultValue={props.input.value}
|
||||
{...props.input}
|
||||
{...props}
|
||||
|
|
Loading…
Reference in New Issue