forked from mystiq/hydrogen-web
Fix move bug
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
0bd1d2b291
commit
f366479c16
1 changed files with 1 additions and 1 deletions
|
@ -237,8 +237,8 @@ export class LazyListView extends ListView {
|
||||||
else if (!fromInRange && toInRange) {
|
else if (!fromInRange && toInRange) {
|
||||||
this.onBeforeListChanged();
|
this.onBeforeListChanged();
|
||||||
const child = this._childCreator(value);
|
const child = this._childCreator(value);
|
||||||
this._childInstances.splice(normalizedToIdx, 0, child);
|
|
||||||
this._removeAdditionalElement(fromIdx, toIdx);
|
this._removeAdditionalElement(fromIdx, toIdx);
|
||||||
|
this._childInstances.splice(normalizedToIdx, 0, child);
|
||||||
insertAt(this._root, normalizedToIdx, mountView(child, this._mountArgs));
|
insertAt(this._root, normalizedToIdx, mountView(child, this._mountArgs));
|
||||||
this.onListChanged();
|
this.onListChanged();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue