This commit is contained in:
Vyacheslav Tumanov 2024-04-02 19:18:37 +05:00 committed by GitHub
parent 361db7a817
commit 84766ea00b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 8 deletions

View File

@ -27,7 +27,7 @@
export let updateOnMouse = true
export let lazy = false
export let highlightIndex: number | undefined = undefined
export let getKey: (index: number) => string = (index) => index.toString()
const getKey: (index: number) => string = (index) => index.toString()
const refs: HTMLElement[] = []

View File

@ -98,12 +98,6 @@
$: if (element != null) {
element.focus()
}
function getContextKey (index: number): string {
const contextId = displayData[index][0]
return contextId ?? index.toString()
}
</script>
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
@ -118,7 +112,6 @@
kind="full-size"
colorsSchema="lumia"
lazy={true}
getKey={getContextKey}
>
<svelte:fragment slot="item" let:item={itemIndex}>
{@const contextId = displayData[itemIndex][0]}