mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-17 18:32:20 +02:00
fix bug that prevented a line from being removed when undoing a newline
This commit is contained in:
parent
9d49a5bb73
commit
abde8b45d2
@ -176,7 +176,7 @@ export function renderModel(editor, model) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (lines.length) {
|
if (lines.length) {
|
||||||
removeNextSiblings(editor.children[lines.length]);
|
removeNextSiblings(editor.children[lines.length - 1]);
|
||||||
} else {
|
} else {
|
||||||
removeChildren(editor);
|
removeChildren(editor);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user