1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-17 12:41:44 +02:00

fix drag/drop

This commit is contained in:
Ian Storm Taylor
2017-10-16 20:33:04 -07:00
parent 6422de5b56
commit 276ed274b1
2 changed files with 2 additions and 2 deletions

View File

@@ -295,7 +295,7 @@ function AfterPlugin(options = {}) {
debug('onDrop', { event })
const { state } = change
const { selection } = state
const { document, selection } = state
let target = getEventRange(event, state)
if (!target) return