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