Stop propagation on copy address

pull/1/head
ninabreznik 8 years ago
parent ed269cdec4
commit d77bb33471
  1. 7
      src/universal-dapp.js

@ -92,7 +92,9 @@ var cssInstance = csjs`
.instance.hidesub > *:not(.title) {
display: none;
}
.copy {
.copy extends ${styles.button} {
border: 1px dotted ${styles.colors.grey};
padding: 0 .3em;
font-weight: bold;
}
.copy:hover{
@ -363,7 +365,8 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar
$instance.toggleClass(`${cssInstance.hidesub}`)
}
function copyToClipboard () {
function copyToClipboard (event) {
event.stopPropagation();
copy(address)
}

Loading…
Cancel
Save