We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
triggerEvent
It seems like triggerEvent doesn't support the "drop" event. The corresponding change would require supporting the DataTransfer event API too.
DataTransfer
The text was updated successfully, but these errors were encountered:
I've been able to mock a dataTransfer as far as sending information from a dragstart element to drop target:
dragstart
drop
async function dragMove(fromElement, toElement) { const context = {}; await triggerEvent(fromElement, 'dragstart', { dataTransfer: { setData(someKey, value) { context[someKey] = value; }, }, }); await triggerEvent(toElement, 'dragover', { dataTransfer: {} }); await triggerEvent(toElement, 'drop', { dataTransfer: { getData(someKey) { return context[someKey]; }, }, }); }
However, my components are not handling the 'drop' event emitted by triggerEvent. I'll see if I can find a minimal reproduction.
Sorry, something went wrong.
I've submitted a PR with a dragMove helper. Maybe this would be of help @jherdman ?
dragMove
#1139
No branches or pull requests
It seems like
triggerEvent
doesn't support the "drop" event. The corresponding change would require supporting theDataTransfer
event API too.The text was updated successfully, but these errors were encountered: