Browse Source
Merge pull request #1453 from juan-cortes/issue-1445
Preparsed value for RecipientAddress to remove spaces
master
Meriadec Pillet
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
src/components/RecipientAddress/index.js
|
|
@ -101,9 +101,10 @@ class RecipientAddress extends PureComponent<Props, State> { |
|
|
|
</Right> |
|
|
|
) : null |
|
|
|
|
|
|
|
const preOnChange = text => onChange((text && text.replace(/\s/g, '')) || '') |
|
|
|
return ( |
|
|
|
<Box relative justifyContent="center"> |
|
|
|
<Input {...rest} value={value} onChange={onChange} renderRight={renderRight} /> |
|
|
|
<Input {...rest} value={value} onChange={preOnChange} renderRight={renderRight} /> |
|
|
|
</Box> |
|
|
|
) |
|
|
|
} |
|
|
|