@plcmp/pl-virtual-scroll 1.0.3 → 1.0.5
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 -1
package/package.json
CHANGED
package/pl-virtual-scroll.js
CHANGED
|
@@ -100,12 +100,13 @@ class PlVirtualScroll extends PlElement {
|
|
|
100
100
|
setTimeout(() => this.render(), 0);
|
|
101
101
|
}
|
|
102
102
|
break;
|
|
103
|
+
|
|
103
104
|
case 'splice': {
|
|
104
105
|
let { index: spliceIndex } = mutation;
|
|
105
106
|
// if mutation is not root try to apply effects to children (need when pushing to array inside array)
|
|
106
107
|
if (rest.length > 0) {
|
|
107
108
|
let path = [this.as, ...rest].join('.');
|
|
108
|
-
this.phyPool[index].ctx.applyEffects({
|
|
109
|
+
this.phyPool[index].ctx.applyEffects({...mutation, path});
|
|
109
110
|
} else {
|
|
110
111
|
this.phyPool.forEach((i) => {
|
|
111
112
|
if (i.index !== null && i.index >= spliceIndex && i.index < this.items.length) {
|