Skip to content

Commit cdec67b

Browse files
committed
Copy address tooltip inside Asset fix
1 parent 855b666 commit cdec67b

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/views/Account.vue

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@
3232
trigger="hover focus"
3333
placement="top"
3434
:hideOnTargetClick="false"
35-
:delay="{ hide: 1000, show: 200 }"
35+
:delay="tooltipDelay"
3636
>
3737
<button
3838
@click.prevent="copyAddress"
39+
@mouseleave="offsetToolTipDelay"
40+
@mouseenter="setInitialToolTipDelay"
3941
class="btn btn-outline-light"
4042
:id="`${asset}_address_container`"
4143
>
@@ -161,7 +163,8 @@ export default {
161163
activityData: [],
162164
updatingBalances: false,
163165
address: null,
164-
showPopOver: true
166+
showPopOver: true,
167+
tooltipDelay: { hide: 1000, show: 200 }
165168
}
166169
},
167170
props: ['accountId', 'asset'],
@@ -245,6 +248,16 @@ export default {
245248
},
246249
applyFilters(filters) {
247250
this.activityData = applyActivityFilters([...this.assetHistory], filters)
251+
},
252+
offsetToolTipDelay() {
253+
this.$nextTick(() => {
254+
this.tooltipDelay = { hide: 0, show: 0 }
255+
})
256+
},
257+
setInitialToolTipDelay() {
258+
this.$nextTick(() => {
259+
this.tooltipDelay = { hide: 1000, show: 200 }
260+
})
248261
}
249262
},
250263
async created() {

0 commit comments

Comments
 (0)