Désactive l'auto-complétion des input

Cette auto-complétion était gênante sur Chrome notamment
pull/701/head
Maxime Quandalle 2019-09-30 11:07:40 +02:00
parent 3739957039
commit 74c5abbfa3
No known key found for this signature in database
GPG Key ID: 428641C03D29CA10
2 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,7 @@ export default function CurrencyInput({
}}
onChange={handleChange}
value={currentValue.toString().replace('.', decimalSeparator)}
autoComplete="off"
/>
{!isCurrencyPrefixed && <>&nbsp;</>}
</div>

View File

@ -60,6 +60,7 @@ export default compose(
debouncedSetFormValue(unit === '%' ? floatValue / 100 : floatValue)
}}
value={unit === '%' ? 100 * value : value}
autoComplete="off"
/>
{suffixed && (
<label className="suffix" htmlFor={'step-' + dottedName}>