I'm using angular-clipboard in several different places (it's great btw), but have recently run into an issue where the text is not copying from within a modal. I did a basic test on Plunkr with a modal which seems to be working fine, so there must be something else causing this.
Working Plunkr: http://plnkr.co/GdY5y2sm688RvwnzGGgg
For the code that doesn't work:
Adding a console.log(); to the angular-clipboard directive shows that the correct text is 'captured' in the createNode and copyText functions.
This is a working example within the same project (not within a modal): https://github.com/kahboom/apiman/blob/752-753-copy-improvements/manager/ui/hawtio/plugins/api-manager/html/app/app-apis.html#L72
Btw this is on OSX El Capitan & Chrome. I'd appreciate any feedback or input. Thanks in advance!
I'm using angular-clipboard in several different places (it's great btw), but have recently run into an issue where the text is not copying from within a modal. I did a basic test on Plunkr with a modal which seems to be working fine, so there must be something else causing this.
Working Plunkr: http://plnkr.co/GdY5y2sm688RvwnzGGgg
For the code that doesn't work:
Adding a console.log(); to the angular-clipboard directive shows that the correct text is 'captured' in the
createNodeandcopyTextfunctions.This is a working example within the same project (not within a modal): https://github.com/kahboom/apiman/blob/752-753-copy-improvements/manager/ui/hawtio/plugins/api-manager/html/app/app-apis.html#L72
Btw this is on OSX El Capitan & Chrome. I'd appreciate any feedback or input. Thanks in advance!