Open talldan opened 2 years ago
Added collecting feedback label. Thanks for the request!
Is this something you'd be interested in working on a PR for? If so, we can iterate on the API to ensure it's something Playwright would accept before starting the implemention.
Thanks!
Is this something you'd be interested in working on a PR for?
Yep, that's a possibility. It'd be a first code contribution, so it would probably need a lot of iteration 😄
Any progress on this?
The existing
dragAndDrop
api is useful, but there are a few use cases that it doesn't fulfil:dragAndDrop
doesn't work for my use-case) along withdragEnter
,dragOver
anddrop
eventsFor some prior art, puppeteer has a slightly more granular API:
Another idea is an API like:
or
Where the
transferData
is encapsulated using a closure and doesn't need to be passed to each function.(credit to @kevin940726 for the latter idea in https://github.com/WordPress/gutenberg/pull/42722)