mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Focus on wallet address in buy workflow (#9715)
This commit is contained in:
parent
96717cc9e0
commit
336282d7d5
@ -59,6 +59,7 @@ function QrCodeView (props) {
|
||||
/>
|
||||
<ReadOnlyInput
|
||||
wrapperClass="ellip-address-wrapper"
|
||||
autoFocus
|
||||
value={checksumAddress(data)}
|
||||
/>
|
||||
</div>
|
||||
|
@ -9,6 +9,7 @@ export default function ReadOnlyInput (props) {
|
||||
value,
|
||||
textarea,
|
||||
onClick,
|
||||
autoFocus = false,
|
||||
} = props
|
||||
|
||||
const InputType = textarea ? 'textarea' : 'input'
|
||||
@ -21,6 +22,7 @@ export default function ReadOnlyInput (props) {
|
||||
readOnly
|
||||
onFocus={(event) => event.target.select()}
|
||||
onClick={onClick}
|
||||
autoFocus={autoFocus}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
@ -32,4 +34,5 @@ ReadOnlyInput.propTypes = {
|
||||
value: PropTypes.string,
|
||||
textarea: PropTypes.bool,
|
||||
onClick: PropTypes.func,
|
||||
autoFocus: PropTypes.bool,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user