maxisam / ngx-clipboard

A pure angular clipboard directive
http://maxisam.github.io/ngx-clipboard/
MIT License
504 stars 93 forks source link

Not working on Safari (13.1) Desktop or IOS (13.5) #243

Open twmarr opened 4 years ago

twmarr commented 4 years ago

Angular 9, IONIC 5, ngx-clipboard 13.01

The copy to clipboard I am doing is really simple. It takes a string of data, usually in csv format to copy to the clipboard.

  if (this.clipboard.copyFromContent(data.toString())) {
    console.log('Copy success')
  }

The copyFromContent always returns false on Safari on either Desktop or IOS.

BoJIbFbI4 commented 4 years ago

Same for iOS 13.6

maxisam commented 4 years ago

lately i am pretty busy, if anyone can look into this issue, that will be great

gurutvm commented 4 years ago

Angular 9, IONIC 5, ngx-clipboard 13.01

The copy to clipboard I am doing is really simple. It takes a string of data, usually in csv format to copy to the clipboard.

  if (this.clipboard.copyFromContent(data.toString())) {
    console.log('Copy success')
  }

The copyFromContent always returns false on Safari on either Desktop or IOS.

i can see fixed for that but after update package version 13.0.1
getting error ERROR in node_modules/ngx-clipboard/lib/ngx-clipboard.service.d.ts(16,9): error TS1086: An accessor cannot be declared in an ambient context.

enrifransch commented 3 years ago

@gurutvm I had the same issue with angular@8.1.1, fixed it by adding:

{
"skipLibCheck": true
} 

inside the tsconfig.json file

guygilboa commented 3 years ago

In my opinion, it's bad to add that global setting. Why no one is fixing the issue after version 13.0.1 as described above?

The copy is not working in Safari till that version and from that version, you cannot work with that package.

Tnx

MB175 commented 2 years ago

Also not working in Safari 15.0 "ngx-clipboard": "^15.0.1"