mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-26 21:15:32 +03:00
key fix (#5146)
This commit is contained in:
parent
361db7a817
commit
84766ea00b
@ -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[] = []
|
||||
|
||||
|
@ -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]}
|
||||
|
Loading…
Reference in New Issue
Block a user