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
parent
commit
ff7043244e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/components/RecipientAddress/index.js

3
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>
)
}

Loading…
Cancel
Save