@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plcmp/pl-virtual-scroll",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Component for lazy list render.",
5
5
  "main": "pl-virtual-scroll.js",
6
6
  "repository": {
@@ -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({ ...mutation, path });
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) {