mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
fix(observable-array): splice to notify correct amount of added items (#7426)
This commit is contained in:

committed by
Manol Donev

parent
b8659e67c3
commit
5e14de6a4e
@ -207,7 +207,7 @@ export class ObservableArray<T> extends observable.Observable implements observa
|
||||
action: ChangeType.Splice,
|
||||
index: start,
|
||||
removed: result,
|
||||
addedCount: this._array.length > length ? this._array.length - length : 0
|
||||
addedCount: this._array.length + result.length - length
|
||||
});
|
||||
if (this._array.length !== length) {
|
||||
this._notifyLengthChange();
|
||||
|
Reference in New Issue
Block a user