From 3ec3311f125c59398d16a179783a5f56b8b0e392 Mon Sep 17 00:00:00 2001 From: Mael Date: Fri, 17 May 2019 10:51:41 +0200 Subject: [PATCH] =?UTF-8?q?:bug:=20le=20onKey=20provoquait=20un=20saut=20d?= =?UTF-8?q?u=20curseur=20=C3=A0=20la=20fin=20de=20la=20saisie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/components/CurrencyInput/CurrencyInput.js | 4 ---- source/components/TargetSelection.js | 1 - 2 files changed, 5 deletions(-) diff --git a/source/components/CurrencyInput/CurrencyInput.js b/source/components/CurrencyInput/CurrencyInput.js index 521e0e01d..f9fd66eb3 100644 --- a/source/components/CurrencyInput/CurrencyInput.js +++ b/source/components/CurrencyInput/CurrencyInput.js @@ -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 (
{ }} debounce={600} className="targetInput" - key={props.input.value} defaultValue={props.input.value} {...props.input} {...props}