microsoft-graph-toolkit icon indicating copy to clipboard operation
microsoft-graph-toolkit copied to clipboard

Copy email not work inside Teams Tab App when using Person Card component

Open SLdragon opened this issue 2 years ago • 3 comments

Teams Tab App do not support Clipboard related js API (see this issue), when I clicked copy button in Person Card component, you will see error messages in console:

image

Uncaught (in promise) DOMException: The Clipboard API has been blocked because of a 
permissions policy applied to the current document

In my opinion, I think we can add a property to determine whether to show copy button in Person Card or if we detect that current environment do not support clipboard API, we can hide copy button.

SLdragon avatar Feb 11 '22 08:02 SLdragon