svelte-select-5 6.1.5 → 6.1.7
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 +3 -1
- package/no-styles/Select.svelte +3 -1
- package/package.json +2 -2
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
|
});
|
package/no-styles/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
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-select-5",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.7",
|
|
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)",
|
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
"svelte": "^5.0.0"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"svelte-floating-ui": "^1.
|
|
28
|
+
"svelte-floating-ui": "^1.6.2"
|
|
29
29
|
}
|
|
30
30
|
}
|