Commit 55bd22d2 authored by Christos's avatar Christos

Merge branch 'fix' into 'master'

fix for comments in lists

See merge request wax/wax!239
parents ac95ea7b 4285c9b9
......@@ -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