e.target === virtual.scrollElement && focusItem(activeIndex))}
>
-
-
- {#each virtual.items as row (row.key)}
-
-
(activeIndex = row.index)}
- class="absolute top-0 left-0 w-full outline-none focus:bg-accent focus:text-accent-foreground"
- style:height="{row.size}px"
- style:transform="translateY({row.start}px)"
- >
- {@render children({ item: items[row.index], index: row.index })}
-
- {/each}
-
+ {#each virtualizer.items as item (item.key)}
+
+ {@render children({ item: items[item.index], index: item.index })}
+
+ {/each}
diff --git a/yarn.lock b/yarn.lock
index 23b5b4b..e1f0e72 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1310,24 +1310,6 @@ __metadata:
languageName: node
linkType: hard
-"@tanstack/svelte-virtual@npm:^3.13.17":
- version: 3.13.17
- resolution: "@tanstack/svelte-virtual@npm:3.13.17"
- dependencies:
- "@tanstack/virtual-core": "npm:3.13.17"
- peerDependencies:
- svelte: ^3.48.0 || ^4.0.0 || ^5.0.0
- checksum: 10c0/8139a94d8b913c1a3aef0e7cda4cfd8451c3e46455a5bd5bae1df26ab7583bfde785ab93cacefba4f0f45f2e2cd13f43fa8cf672c45cb31d52b3232ffb37e69e
- languageName: node
- linkType: hard
-
-"@tanstack/virtual-core@npm:3.13.17":
- version: 3.13.17
- resolution: "@tanstack/virtual-core@npm:3.13.17"
- checksum: 10c0/a021795b88856eff8518137ecb85b72f875399bc234ad10bea440ecb6ab48e5e72a74c9a712649a7765f0c37bc41b88263f5104d18df8256b3d50f6a97b32c48
- languageName: node
- linkType: hard
-
"@testing-library/dom@npm:9.x.x || 10.x.x":
version: 10.4.1
resolution: "@testing-library/dom@npm:10.4.1"
@@ -2466,7 +2448,6 @@ __metadata:
"@sveltejs/vite-plugin-svelte": "npm:^6.2.1"
"@tailwindcss/vite": "npm:^4.1.18"
"@tanstack/svelte-query": "npm:^6.0.14"
- "@tanstack/svelte-virtual": "npm:^3.13.17"
"@testing-library/jest-dom": "npm:^6.9.1"
"@testing-library/svelte": "npm:^5.3.1"
"@tsconfig/svelte": "npm:^5.0.6"