1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-17 20:51:20 +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

@@ -78,7 +78,7 @@
"no-path-concat": "error",
"no-redeclare": "error",
"no-regex-spaces": "error",
"no-restricted-globals": ["error", "Debug", "Document", "event", "history", "History", "length", "Map", "Node", "parent", "Range", "Selection", "Set", "Text"],
"no-restricted-globals": ["error", "Debug", "document", "Document" "event", "history", "History", "length", "Map", "Node", "parent", "Range", "Selection", "Set", "Text"],
"no-sequences": "error",
"no-shadow": "error",
"no-shadow-restricted-names": "error",

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