From c40efbdbb8adc41312ff3c9e313fd7cdfa751e6c Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Wed, 6 Nov 2024 13:15:58 -0600 Subject: [PATCH] Rebuild the shadow table because the split row may have children rows --- VinOutlineKit/Sources/VinOutlineKit/Outline.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VinOutlineKit/Sources/VinOutlineKit/Outline.swift b/VinOutlineKit/Sources/VinOutlineKit/Outline.swift index bfe5425f..3355b491 100644 --- a/VinOutlineKit/Sources/VinOutlineKit/Outline.swift +++ b/VinOutlineKit/Sources/VinOutlineKit/Outline.swift @@ -2007,7 +2007,8 @@ public final class Outline: RowContainer, Identifiable, Equatable, Hashable { guard isBeingViewed else { return } guard let rowShadowTableIndex = row.shadowTableIndex else { return } - var changes = OutlineElementChanges(section: adjustedRowsSection, reloads: Set([rowShadowTableIndex])) + var changes = rebuildShadowTable() + changes.append(OutlineElementChanges(section: adjustedRowsSection, reloads: Set([rowShadowTableIndex]))) changes.newCursorIndex = newCursorIndex changes.cursorMoveIsToStart = true outlineElementsDidChange(changes)