@danielgindi/selectbox 1.0.104 → 1.0.105

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/lib/SelectBox.js CHANGED
@@ -376,7 +376,9 @@ class SelectBox {
376
376
  entry.borderBoxSize[0].inlineSize !== lastSize.borderBoxSize.inlineSize ||
377
377
  entry.contentBoxSize[0].blockSize !== lastSize.contentBoxSize.blockSize ||
378
378
  entry.contentBoxSize[0].inlineSize !== lastSize.contentBoxSize.inlineSize) {
379
+ p.resizeObserver.unobserve(p.el);
379
380
  this._resizeInput();
381
+ requestAnimationFrame(() => p.resizeObserver.observe(p.el));
380
382
  }
381
383
 
382
384
  lastSize.borderBoxSize = entry.borderBoxSize[0];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielgindi/selectbox",
3
- "version": "1.0.104",
3
+ "version": "1.0.105",
4
4
  "description": "A collection of dom utilities. So you can work natively with the dom without dom frameworks.",
5
5
  "main": "dist/lib.cjs.min.js",
6
6
  "module": "lib/index.js",