D
D
Djan922019-10-01 11:53:08
JavaScript
Djan92, 2019-10-01 11:53:08

What is the problem with the clipboard?

I welcome everyone! People, tell the newbie where the dog is buried? The essence of the problem is that the button for copying some content of a div or other element copies only when double clicked. I tried to run such functionality with someone else's manually written code, and with clipboard.js the result is the same - copying occurs only if you double-click on the button, but if you click once, then something previously copied there remains in the clipboard.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hzzzzl, 2019-10-01
@hzzzzl

did as in this piece of code from google, works with 1 click
https://techoverflow.net/2018/03/30/copying-string...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question