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
commit 9fa444c10f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}