|
|
@ -36,15 +36,18 @@ export default class EnsInput extends Component { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
onPaste = (event) => { |
|
|
|
onPaste = (event) => { |
|
|
|
event.clipboardData.items[0].getAsString((text) => { |
|
|
|
if (event.clipboardData.items?.length) { |
|
|
|
const input = text.trim(); |
|
|
|
const clipboardItem = event.clipboardData.items[0]; |
|
|
|
if ( |
|
|
|
clipboardItem?.getAsString((text) => { |
|
|
|
!isBurnAddress(input) && |
|
|
|
const input = text.trim(); |
|
|
|
isValidHexAddress(input, { mixedCaseUseChecksum: true }) |
|
|
|
if ( |
|
|
|
) { |
|
|
|
!isBurnAddress(input) && |
|
|
|
this.props.onPaste(input); |
|
|
|
isValidHexAddress(input, { mixedCaseUseChecksum: true }) |
|
|
|
} |
|
|
|
) { |
|
|
|
}); |
|
|
|
this.props.onPaste(input); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
onChange = ({ target: { value } }) => { |
|
|
|
onChange = ({ target: { value } }) => { |
|
|
|