Merge pull request #501 from Intelx/pull-request

Fix leaf nodes not selectable
This commit is contained in:
Philipp Kühn
2019-12-02 22:32:32 +01:00
committed by GitHub

View File

@@ -116,6 +116,11 @@ export default class ComponentView {
// prevent a full re-render of the vue component on update
// we'll handle prop updates in `update()`
ignoreMutation(mutation) {
// allow leaf nodes to be selected
if (mutation.type === 'selection') {
return false
}
if (!this.contentDOM) {
return true
}