svelte-select-5 6.1.8 → 6.1.9

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
@@ -808,11 +808,9 @@
808
808
  });
809
809
 
810
810
  // Read-only props - always reflect current state, external changes are ignored
811
- $effect(() => {
811
+ // Using $effect.pre to update before DOM render for better synchronization
812
+ $effect.pre(() => {
812
813
  readonlyValue = value;
813
- });
814
-
815
- $effect(() => {
816
814
  readonlyId = computeJustValue();
817
815
  });
818
816
 
@@ -808,11 +808,9 @@
808
808
  });
809
809
 
810
810
  // Read-only props - always reflect current state, external changes are ignored
811
- $effect(() => {
811
+ // Using $effect.pre to update before DOM render for better synchronization
812
+ $effect.pre(() => {
812
813
  readonlyValue = value;
813
- });
814
-
815
- $effect(() => {
816
814
  readonlyId = computeJustValue();
817
815
  });
818
816
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-select-5",
3
- "version": "6.1.8",
3
+ "version": "6.1.9",
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)",