From f366479c160d41558710b1113ffb3cf38cbfe588 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 16 Jul 2021 13:39:17 +0530 Subject: [PATCH] Fix move bug Signed-off-by: RMidhunSuresh --- src/platform/web/ui/general/LazyListView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/web/ui/general/LazyListView.js b/src/platform/web/ui/general/LazyListView.js index 90adc49e..4fc581f5 100644 --- a/src/platform/web/ui/general/LazyListView.js +++ b/src/platform/web/ui/general/LazyListView.js @@ -237,8 +237,8 @@ export class LazyListView extends ListView { else if (!fromInRange && toInRange) { this.onBeforeListChanged(); const child = this._childCreator(value); - this._childInstances.splice(normalizedToIdx, 0, child); this._removeAdditionalElement(fromIdx, toIdx); + this._childInstances.splice(normalizedToIdx, 0, child); insertAt(this._root, normalizedToIdx, mountView(child, this._mountArgs)); this.onListChanged(); }