mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-17 20:51:20 +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 a drag is already in progress, don't do this again.
|
||||
if (isDragging) return true
|
||||
|
||||
isDragging = true
|
||||
event.nativeEvent.dataTransfer.dropEffect = 'move'
|
||||
if (!isDragging) {
|
||||
isDragging = true
|
||||
event.nativeEvent.dataTransfer.dropEffect = 'move'
|
||||
}
|
||||
|
||||
debug('onDragOver', { event })
|
||||
}
|
||||
|
Reference in New Issue
Block a user