ngclipboard icon indicating copy to clipboard operation
ngclipboard copied to clipboard

Selection

Open Krakof opened this issue 8 years ago • 1 comments

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

Krakof avatar Dec 19 '16 19:12 Krakof

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?

};

lukasT avatar Mar 31 '17 09:03 lukasT