mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-14 18:49:02 +08:00
Merge pull request #501 from Intelx/pull-request
Fix leaf nodes not selectable
This commit is contained in:
commit
9fa444c10f
@ -116,6 +116,11 @@ export default class ComponentView {
|
|||||||
// prevent a full re-render of the vue component on update
|
// prevent a full re-render of the vue component on update
|
||||||
// we'll handle prop updates in `update()`
|
// we'll handle prop updates in `update()`
|
||||||
ignoreMutation(mutation) {
|
ignoreMutation(mutation) {
|
||||||
|
// allow leaf nodes to be selected
|
||||||
|
if (mutation.type === 'selection') {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
if (!this.contentDOM) {
|
if (!this.contentDOM) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user