From cff9583a463a8771a1f02468783d5dfb6654a2c5 Mon Sep 17 00:00:00 2001 From: lucaronin Date: Tue, 14 Apr 2026 11:37:44 +0200 Subject: [PATCH] fix: support caret boundary on current target --- src/components/inlineWikilinkDom.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/inlineWikilinkDom.ts b/src/components/inlineWikilinkDom.ts index f32c7773..3640df49 100644 --- a/src/components/inlineWikilinkDom.ts +++ b/src/components/inlineWikilinkDom.ts @@ -84,7 +84,7 @@ function findTextBoundaryAtEdge( } const children = Array.from(node.childNodes) - const orderedChildren = edge === 'start' ? children : children.toReversed() + const orderedChildren = edge === 'start' ? children : [...children].reverse() for (const child of orderedChildren) { const boundary = findTextBoundaryAtEdge(child, edge)