Clipboard.js: The first copy, you need to click twice to copy successfully.Tested Google, firefox, 360 security three browsers are the same。

Created on 20 Mar 2019  Â·  7Comments  Â·  Source: zenorocha/clipboard.js

Most helpful comment

The problem was resolved because I didn't get the DOM elements right.

All 7 comments

You must have an issue with your implementation.
The demosite works without any issues: https://clipboardjs.com/ (just verified it in Chrome)

When the data is obtained asynchronously, the first copy needs to be clicked twice.How to solve?

I can't take the DOM element with $nextTick in vue's mouted, so I can't pre-initialize it.

The problem was resolved because I didn't get the DOM elements right.

@inputherf then please close Thisted issue

look:

image

I met the same problem

The problem was resolved because I didn't get the DOM elements right.

Thank you for your answer .The problem is really with the DOM binding

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aussiechief picture aussiechief  Â·  3Comments

168tickets picture 168tickets  Â·  6Comments

lovebdsobuj picture lovebdsobuj  Â·  5Comments

bodymindarts picture bodymindarts  Â·  5Comments

XZZsr picture XZZsr  Â·  5Comments