svelte-select-5 6.1.5 → 6.1.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/Select.svelte CHANGED
@@ -163,6 +163,7 @@
163
163
  let _inputAttributes = $state({});
164
164
  let prevJustValue = $state(undefined);
165
165
  let isScrollingTimer;
166
+ let autoUpdateInitialized = false;
166
167
 
167
168
  // Floating UI config - using closure for listOffset to capture current value
168
169
  let _floatingConfig = {
@@ -853,7 +854,8 @@
853
854
  });
854
855
 
855
856
  $effect(() => {
856
- if (container && floatingConfig?.autoUpdate === undefined) {
857
+ if (container && !autoUpdateInitialized && floatingConfig?.autoUpdate === undefined) {
858
+ autoUpdateInitialized = true;
857
859
  _floatingConfig.autoUpdate = true;
858
860
  }
859
861
  });
@@ -163,6 +163,7 @@
163
163
  let _inputAttributes = $state({});
164
164
  let prevJustValue = $state(undefined);
165
165
  let isScrollingTimer;
166
+ let autoUpdateInitialized = false;
166
167
 
167
168
  // Floating UI config - using closure for listOffset to capture current value
168
169
  let _floatingConfig = {
@@ -853,7 +854,8 @@
853
854
  });
854
855
 
855
856
  $effect(() => {
856
- if (container && floatingConfig?.autoUpdate === undefined) {
857
+ if (container && !autoUpdateInitialized && floatingConfig?.autoUpdate === undefined) {
858
+ autoUpdateInitialized = true;
857
859
  _floatingConfig.autoUpdate = true;
858
860
  }
859
861
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-select-5",
3
- "version": "6.1.5",
3
+ "version": "6.1.6",
4
4
  "description": "A <Select> component for Svelte 5 apps (fork of svelte-select)",
5
5
  "repository": "https://github.com/Dbone29/svelte-select-5.git",
6
6
  "author": "Robert Balfré <rob.balfre@gmail.com> (https://github.com/rob-balfre)",