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
Drag and drop is broken; however, this problem is alleviated when the second ".then()" block under drop is commented out. Is the second ".then()" block really needed?
Drag and drop is broken; however, this problem is alleviated when the second ".then()" block under drop is commented out. Is the second ".then()" block really needed?
Proposed fix (starting from drop):
drop(clientPosition = {}) {
return this.target
.trigger('drop', {
dataTransfer,
eventConstructor: 'DragEvent',
...this.options.target,
})
.then(() => {
if (isAttached(this.targetElement)) {
this.target
.trigger('mouseup', {
which: 1,
button: 0,
...clientPosition,
eventConstructor: 'MouseEvent',
...this.options.target,
})
// .then(() => {
// if (isAttached(this.targetElement)) {
// this.target.trigger('pointerup', {
// which: 1,
// button: 0,
// ...clientPosition,
// eventConstructor: 'PointerEvent',
// ...this.options.target,
// })
// }
// })
}
})
},
The text was updated successfully, but these errors were encountered: