Fix move bug

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-07-16 13:39:17 +05:30
parent 0bd1d2b291
commit f366479c16

View file

@ -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();
}