clipboard-copy icon indicating copy to clipboard operation
clipboard-copy copied to clipboard

not working on Mac safari 15.0

Open yossi-shasho opened this issue 3 years ago • 6 comments

yossi-shasho avatar Nov 15 '21 14:11 yossi-shasho

just used the example from the github readme

const copy = require('clipboard-copy')

button.addEventListener('click', function () {
  copy('This is some cool text')
})

got a console error:

Unhandled Promise Rejection: NotAllowedError: The request is not allowed

yossi-shasho avatar Nov 15 '21 14:11 yossi-shasho

I found this same issue too. @yossi-shasho did you find a solution or any work-around?

makeitraina avatar Dec 06 '21 23:12 makeitraina

@makeitraina i haven't solved it. apparantly its bigger than us - apple blocked it in a deeper level thats not easily surpassable. we're changed the UI to a input the user can copy from.

yossi-shasho avatar Dec 08 '21 14:12 yossi-shasho

@makeitraina i haven't solved it. apparantly its bigger than us - apple blocked it in a deeper level thats not easily surpassable. we're changed the UI to a input the user can copy from.

yossi-shasho avatar Dec 08 '21 14:12 yossi-shasho

If anyone has any suggested code for how to make it work on Safari 15 I would be happy to add it and make a new release 🚀

LinusU avatar Mar 16 '22 17:03 LinusU

FYI it works for me on Safari 15.5

stebogit avatar Jul 07 '22 06:07 stebogit