You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clipboard write() method not working in desktop Teams
I'm developing a personal tab for Microsoft Teams. Part of the functionality of my app is copying some data to the clipboard. For this, I use the write() method from the clipboard namespace. It works fine in the web version of Teams but throws an error in the desktop Teams. Failed to copy to clipboard. NotAllowedError: Failed to execute 'write' on 'Clipboard': Document is not focused.
Here is the code snippets that I use to copy data to the clipboard:
1.
@Prasad-MSFT@shrshindeMSFT unfortunately, #2201 didn't solve the issue. isSupported() returns trueonn desktop, but on try clipdoard.write I get the error Failed to copy to clipboard. NotAllowedError: Failed to execute 'write' on 'Clipboard': Document is not focused.
The web version works fine after a request for permission.
Clipboard write() method not working in desktop Teams
I'm developing a personal tab for Microsoft Teams. Part of the functionality of my app is copying some data to the clipboard. For this, I use the write() method from the clipboard namespace. It works fine in the web version of Teams but throws an error in the desktop Teams.
Failed to copy to clipboard. NotAllowedError: Failed to execute 'write' on 'Clipboard': Document is not focused.
Here is the code snippets that I use to copy data to the clipboard:
1.
The text was updated successfully, but these errors were encountered: