-
Notifications
You must be signed in to change notification settings - Fork 161
Clipboard#{read,write}
are wrong
#730
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
Labels
Comments
I can pick this up if you like! |
@zetashift yes please! 😃 I have a renewed interest in all these APIs because of my new fs2-dom pet project 😋 |
From https://w3c.github.io/clipboard-apis/#dom-clipboard-write I can't exactly figure out what kind of Currently have this: def write(data: DataTransfer): js.Promise[ClipboardItem] = js.native |
@zetashift I think it should be this def write(data: ClipboardItems): js.Promise[Unit] = js.native
|
armanbilge
added a commit
that referenced
this issue
Nov 5, 2022
Fixup `Clipboard` to use added `ClipboardItem`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to the MDN docs,
read
andwrite
should be in terms of ajs.Array[ClipboardItem]
. But that's not what aDataTransfer
is ...https://developer.mozilla.org/en-US/docs/Web/API/Clipboard
scala-js-dom/dom/src/main/scala/org/scalajs/dom/Clipboard.scala
Line 28 in 51a807c
scala-js-dom/dom/src/main/scala/org/scalajs/dom/Clipboard.scala
Line 41 in 51a807c
The text was updated successfully, but these errors were encountered: