From 74713051ce9237a22dc5830119736e95096298cd Mon Sep 17 00:00:00 2001 From: WeybiJiang Date: Wed, 7 Aug 2024 09:20:46 +0800 Subject: [PATCH] fix(cell): reset lastChild in cell group when a child is unlinked reset lastChild in cell group when a child is unlinked #3052 --- src/cell-group/cell-group.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cell-group/cell-group.ts b/src/cell-group/cell-group.ts index 970277d36..864bd5cb9 100644 --- a/src/cell-group/cell-group.ts +++ b/src/cell-group/cell-group.ts @@ -15,6 +15,9 @@ export default class CellGroup extends SuperComponent { linked() { this.updateLastChid(); }, + unlinked() { + this.updateLastChid(); + }, }, };