Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selection #30

Open
Krakof opened this issue Dec 19, 2016 · 1 comment
Open

Selection #30

Krakof opened this issue Dec 19, 2016 · 1 comment

Comments

@Krakof
Copy link

Krakof commented Dec 19, 2016

Hi,
How could I remove text selection after Copy? In your example it's working good
Thanks in advance

@lukasT
Copy link

lukasT commented Mar 31, 2017

have you tried the onSuccess callback for that? As being written here: https://sachinchoolur.github.io/ngclipboard/

// You can still access the clipboard.js event
$scope.onSuccess = function(e) {
console.info('Action:', e.action);
console.info('Text:', e.text);
console.info('Trigger:', e.trigger);

e.clearSelection();   // <== this sounds to me as it would do the job?

};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants