From 74c5abbfa37e7a13c89d4956891456d6b6d4d6b3 Mon Sep 17 00:00:00 2001 From: Maxime Quandalle Date: Mon, 30 Sep 2019 11:07:40 +0200 Subject: [PATCH 1/3] =?UTF-8?q?D=C3=A9sactive=20l'auto-compl=C3=A9tion=20d?= =?UTF-8?q?es=20input?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cette auto-complétion était gênante sur Chrome notamment --- source/components/CurrencyInput/CurrencyInput.js | 1 + source/components/conversation/Input.js | 1 + 2 files changed, 2 insertions(+) diff --git a/source/components/CurrencyInput/CurrencyInput.js b/source/components/CurrencyInput/CurrencyInput.js index 0be897326..907db76a6 100644 --- a/source/components/CurrencyInput/CurrencyInput.js +++ b/source/components/CurrencyInput/CurrencyInput.js @@ -82,6 +82,7 @@ export default function CurrencyInput({ }} onChange={handleChange} value={currentValue.toString().replace('.', decimalSeparator)} + autoComplete="off" /> {!isCurrencyPrefixed && <> €} diff --git a/source/components/conversation/Input.js b/source/components/conversation/Input.js index 9b96c7d79..b810ef6ae 100644 --- a/source/components/conversation/Input.js +++ b/source/components/conversation/Input.js @@ -60,6 +60,7 @@ export default compose( debouncedSetFormValue(unit === '%' ? floatValue / 100 : floatValue) }} value={unit === '%' ? 100 * value : value} + autoComplete="off" /> {suffixed && (