use navigator clipboard if has support #510#514
Conversation
5c1eff6 to
f4c7854
Compare
| }; | ||
| const clipboardItem = new ClipboardItem(clipboardItemData); | ||
| await navigator.clipboard.write([clipboardItem]); | ||
| navigator.clipboard.write([clipboardItem]).then(() => ({})); |
There was a problem hiding this comment.
What's the best way to handle promises on Behavior class?
To not change architecture and turn this method a promise, I only handle promise of clipboard.write with .then
What's the project pattern to handle errors? We let the error pop up for the user to handle? We take it and treat it directly at the lib?
|
If anyone can give us a ETA, that would be nice. |
for sure |
|
When will this be applied so that we can remove our temporary solutions? |
|
hello @webloopbox |
|
We'll release version |
great news |
This PR is to fix this issues on chrome 134.*
Recent updates on chrome (134.* > ) broken the
.execCommandin some cases, as reported in some issues like this one https://issues.chromium.org/issues/401379144#509
#507