@lightningtv/solid
Advanced tools
Comparing version 2.6.0 to 2.6.1
@@ -1,2 +0,2 @@ | ||
import { Index, createEffect, createMemo, createSignal, splitProps, } from 'solid-js'; | ||
import { Index, createEffect, createMemo, createSignal, splitProps, Show, } from 'solid-js'; | ||
import { Dynamic } from '@lightningtv/solid'; | ||
@@ -30,6 +30,8 @@ export function LazyUp(props) { | ||
}); | ||
return (<Dynamic component={p.component} {...others} {...keyHandlers()}> | ||
<Index each={items()} fallback={p.fallback} children={p.children}/> | ||
</Dynamic>); | ||
return (<Show when={items()}> | ||
<Dynamic component={p.component} {...others} {...keyHandlers()}> | ||
<Index each={items()} fallback={p.fallback} children={p.children}/> | ||
</Dynamic> | ||
</Show>); | ||
} | ||
//# sourceMappingURL=LazyUp.jsx.map |
@@ -49,3 +49,7 @@ // From the renderer, not exported | ||
selectedElement = | ||
selectedElement || componentRef.children[selected]; | ||
selectedElement || | ||
componentRef.children[selected]; | ||
if (!selectedElement) { | ||
return; | ||
} | ||
const selectedPosition = selectedElement[axis] ?? 0; | ||
@@ -52,0 +56,0 @@ const selectedSize = selectedElement[dimension] ?? 0; |
{ | ||
"name": "@lightningtv/solid", | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"description": "Lightning Renderer for Solid Universal", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -81,3 +81,8 @@ import type { | ||
selectedElement = | ||
selectedElement || (componentRef.children[selected] as ElementNode); | ||
selectedElement || | ||
(componentRef.children[selected] as ElementNode | undefined); | ||
if (!selectedElement) { | ||
return; | ||
} | ||
const selectedPosition = selectedElement[axis] ?? 0; | ||
@@ -84,0 +89,0 @@ const selectedSize = selectedElement[dimension] ?? 0; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
234545
3305