@vaadin/component-base 24.3.13 → 24.3.14

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": "@vaadin/component-base",
3
- "version": "24.3.13",
3
+ "version": "24.3.14",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -42,5 +42,5 @@
42
42
  "@vaadin/testing-helpers": "^0.6.0",
43
43
  "sinon": "^13.0.2"
44
44
  },
45
- "gitHead": "a9551e4fcc8b6f2695a2d3099670a9d0729f2c62"
45
+ "gitHead": "4954f480ccfb7dca452e736dd67411a9ad992116"
46
46
  }
package/src/define.js CHANGED
@@ -9,7 +9,7 @@ export function defineCustomElement(CustomElement) {
9
9
  if (!defined) {
10
10
  Object.defineProperty(CustomElement, 'version', {
11
11
  get() {
12
- return '24.3.13';
12
+ return '24.3.14';
13
13
  },
14
14
  });
15
15
 
@@ -111,12 +111,12 @@ export class SlotController extends EventTarget {
111
111
  if (slotName !== '') {
112
112
  node.setAttribute('slot', slotName);
113
113
  }
114
- this.node = node;
115
114
  this.defaultNode = node;
116
115
  }
117
116
  }
118
117
 
119
118
  if (node) {
119
+ this.node = node;
120
120
  host.appendChild(node);
121
121
  }
122
122
 
@@ -5,7 +5,7 @@
5
5
  */
6
6
  /* eslint-disable @typescript-eslint/member-ordering */
7
7
  // https://github.com/vaadin/eslint-config-vaadin/issues/33
8
- import { animationFrame, timeOut } from './async.js';
8
+ import { animationFrame, microTask, timeOut } from './async.js';
9
9
  import { isSafari } from './browser-utils.js';
10
10
  import { Debouncer, flush } from './debounce.js';
11
11
  import { ironList } from './iron-list-core.js';
@@ -350,6 +350,9 @@ export class IronListAdapter {
350
350
  // Schedule and flush a resize handler
351
351
  this._resizeHandler();
352
352
  flush();
353
+ // Schedule an update to ensure item positions are correct after subsequent size changes
354
+ // Fix for https://github.com/vaadin/flow-components/issues/6269
355
+ this._debounce('_update', this._update, microTask);
353
356
  }
354
357
 
355
358
  /** @private */