Commit 4285c9b9 authored by chris's avatar chris

fix for comments in lists

parent ac95ea7b
......@@ -73,7 +73,7 @@ class AbstractProvider extends EventEmitter {
// might be for example a list-item
// Now works as lists only are allowed in main surface.
// Fix as to find the right container for the selection.
if (container === '') container = containers[0]
if (!container) container = containers[0]
const blockPosition = container.getPosition(blockId)
const nodePosition = node.start.offset
......@@ -210,7 +210,7 @@ class AbstractProvider extends EventEmitter {
return cont
}
})
if (container === '') container = containersEls[0]
if (!container) container = containersEls[0]
return container
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment