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:
@@ -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",
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user