mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-18 13:11:17 +02:00
Removed early return in onDragOver (#1772)
This commit is contained in:
committed by
Ian Storm Taylor
parent
d4c630c05a
commit
4712e64c30
@@ -270,10 +270,10 @@ function BeforePlugin() {
|
|||||||
if (node.isVoid) event.preventDefault()
|
if (node.isVoid) event.preventDefault()
|
||||||
|
|
||||||
// If a drag is already in progress, don't do this again.
|
// If a drag is already in progress, don't do this again.
|
||||||
if (isDragging) return true
|
if (!isDragging) {
|
||||||
|
isDragging = true
|
||||||
isDragging = true
|
event.nativeEvent.dataTransfer.dropEffect = 'move'
|
||||||
event.nativeEvent.dataTransfer.dropEffect = 'move'
|
}
|
||||||
|
|
||||||
debug('onDragOver', { event })
|
debug('onDragOver', { event })
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user