[BUG] Clipboard Paste
function copyToClipboard(text) {
const tempInput = document.createElement('input');
tempInput.value = text;
document.body.appendChild(tempInput);
tempInput.select();
document.execCommand('copy');
document.body.removeChild(tempInput);
Swal.fire({
icon: 'success',
title: 'Copied!',
confirmButtonText: 'OK',
background: '#343a40',
color: '#ffffff',
});
}
Can't paste from copy to clipboard HTML
I don't understand what you mean with this snippet of code. Can you explain in which situation you encounter the bug ?
I don't understand what you mean with this snippet of code. Can you explain in which situation you encounter the bug ?
This is an example of copying code in HTML. When copied successfully, the copied text doesn't appear when pasted using the keyboard.
Can you paste the copied text using the usual method of clicking "Paste" in the long press menu ?
I don't understand what you mean with this snippet of code. Can you explain in which situation you encounter the bug ?
my screenrecord https://drive.google.com/file/d/120UBP5ar1Htb0XBQbeybl02AwwK9_5UV/view?usp=sharing
Can you paste the copied text using the usual method of clicking "Paste" in the long press menu ?
No issue from copy/paste by system
Thanks for the video! The root cause is not clear to me so more investigation is needed.
The weird thing is that the paste key works the first time you used it.
Thanks for the video! The root cause is not clear to me so more investigation is needed.
The weird thing is that the paste key works the first time you used it.
Yes, if you use system first it will be normal, but if you use keyboard directly it will be blank (text can't be pasted using system either)