mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 02:59:01 +08:00
Allow leaf nodes to be selected
This commit is contained in:
parent
3510b7ee72
commit
dd7eafb998
@ -116,6 +116,8 @@ 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") {
|
if (mutation.type === "selection") {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user