mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 16:39:33 +08:00
DFS with depth (#1451)
This commit is contained in:
@ -130,7 +130,7 @@ function $wrapOverflowedNodes(offset: number): void {
|
||||
const dfsNodesLength = dfsNodes.length;
|
||||
let accumulatedLength = 0;
|
||||
for (let i = 0; i < dfsNodesLength; i += 1) {
|
||||
const node = dfsNodes[i];
|
||||
const {node} = dfsNodes[i];
|
||||
if ($isOverflowNode(node)) {
|
||||
const previousLength = accumulatedLength;
|
||||
const nextLength = accumulatedLength + node.getTextContentSize();
|
||||
|
Reference in New Issue
Block a user