Skip to content

Commit a88625d

Browse files
Wqrldnperez0111
andauthored
cleanup scrollintoview call
Co-authored-by: Nick Perez <computers@nickthesick.com>
1 parent 360d5d1 commit a88625d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

packages/core/src/blocks/utils/listItemEnterHandler.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,9 @@ export const handleEnter = (
3434
} else if (blockContent.node.childCount > 0) {
3535
return editor.transact((tr) => {
3636
tr.deleteSelection();
37-
const result = splitBlockTr(tr, tr.selection.from, true);
3837
tr.scrollIntoView();
39-
return result;
40-
});
38+
return splitBlockTr(tr, tr.selection.from, true);
39+
});
4140
}
4241

4342
return false;

0 commit comments

Comments
 (0)