Commit d77bb334 authored by ninabreznik's avatar ninabreznik

Stop propagation on copy address

parent ed269cde
...@@ -92,7 +92,9 @@ var cssInstance = csjs` ...@@ -92,7 +92,9 @@ var cssInstance = csjs`
.instance.hidesub > *:not(.title) { .instance.hidesub > *:not(.title) {
display: none; display: none;
} }
.copy { .copy extends ${styles.button} {
border: 1px dotted ${styles.colors.grey};
padding: 0 .3em;
font-weight: bold; font-weight: bold;
} }
.copy:hover{ .copy:hover{
...@@ -363,7 +365,8 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar ...@@ -363,7 +365,8 @@ UniversalDApp.prototype.getInstanceInterface = function (contract, address, $tar
$instance.toggleClass(`${cssInstance.hidesub}`) $instance.toggleClass(`${cssInstance.hidesub}`)
} }
function copyToClipboard () { function copyToClipboard (event) {
event.stopPropagation();
copy(address) copy(address)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment