mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 07:13:08 -05:00
Fix missing assignment in fixCursor
The parent variable was introduced in the Typescript refactor to make the type checker happy, however we missed assigning the result back to the `node` variable at the end. Fixes #449
This commit is contained in:
parent
949b5b227e
commit
c0479f3fdf
1 changed files with 1 additions and 0 deletions
|
@ -44,6 +44,7 @@ const fixCursor = (node: Node): Node => {
|
|||
while ((child = parent.lastElementChild) && !isInline(child)) {
|
||||
parent = child;
|
||||
}
|
||||
node = parent;
|
||||
}
|
||||
if (fixer) {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue