Skip to content

Commit

Permalink
Rebuild the shadow table because the split row may have children rows
Browse files Browse the repository at this point in the history
  • Loading branch information
vincode-io committed Nov 6, 2024
1 parent f03b5de commit c40efbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion VinOutlineKit/Sources/VinOutlineKit/Outline.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c40efbd

Please sign in to comment.