icones icon indicating copy to clipboard operation
icones copied to clipboard

Copy the icon

Open i1Zeus opened this issue 2 years ago • 7 comments
trafficstars

Describe the bug

I can't copy the icon as a svg or anything, the only thing I'm able to do is to brows icons.

Reproduction

the ability to copy and paste

System Info

windows 11.
vs code

Used Package Manager

npm

Validations

  • [x] Follow our Code of Conduct
  • [X] Read the Contributing Guide.
  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • [X] The provided reproduction is a minimal reproducible of the bug.

i1Zeus avatar Feb 07 '23 16:02 i1Zeus

What browser are you using?

cyberalien avatar Feb 07 '23 16:02 cyberalien

edge

i1Zeus avatar Feb 08 '23 11:02 i1Zeus

Edge supports Clipboard API. Check your addons, probably something is interfering with clipboard.

cyberalien avatar Feb 08 '23 12:02 cyberalien

在vue3中发现,循环渲染的时候,通过类名加载的图标无效

sjqw avatar Feb 21 '23 10:02 sjqw

@cyberalien mate I am using the extension in vs code that allow me to view and copy icons form the code editor itself.

i1Zeus avatar Feb 21 '23 13:02 i1Zeus

Tested extension and it indeed doesn't work. Probably extension needs to do some extra work to get access to clipboard.

cyberalien avatar Feb 21 '23 13:02 cyberalien

Describe the bug

I can't copy the icon as a svg or anything, the only thing I'm able to do is to brows icons.

Reproduction

the ability to copy and paste

System Info

windows 11.
vs code

Used Package Manager

npm

Validations

  • [x] Follow our Code of Conduct
  • [x] Read the Contributing Guide.
  • [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • [x] The provided reproduction is a minimal reproducible of the bug.

The same issue I encounter while developing a figma plugin. I think the problem is with the navigator.clipboard API that doesn't work over an insecure connection like http protocol (which is inconvenient in the development phase). I suggest to move from relying on the browser clipboard to an alternative library like a Clipboard.js

Ayyoub-ESSADEQ avatar Jul 12 '23 17:07 Ayyoub-ESSADEQ