@plcmp/pl-virtual-scroll 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/pl-virtual-scroll.js +2 -2
package/package.json
CHANGED
package/pl-virtual-scroll.js
CHANGED
|
@@ -102,8 +102,8 @@ class PlVirtualScroll extends PlElement {
|
|
|
102
102
|
break;
|
|
103
103
|
|
|
104
104
|
case 'splice': {
|
|
105
|
-
|
|
106
|
-
if (Number(
|
|
105
|
+
const { index: spliceIndex } = mutation;
|
|
106
|
+
if (Number(spliceIndex) >= 0) {
|
|
107
107
|
// if mutation is not root try to apply effects to children (need when pushing to array inside array)
|
|
108
108
|
if (rest.length > 0) {
|
|
109
109
|
let path = [this.as, ...rest].join('.');
|