@lightningtv/solid
Advanced tools
Comparing version
@@ -20,4 +20,3 @@ /** | ||
*/ | ||
import { createSignal, createContext, useContext, untrack } from 'solid-js'; | ||
import { activeElement } from '@lightningtv/solid'; | ||
import { createSignal, createContext, useContext } from 'solid-js'; | ||
const FocusStackContext = createContext(undefined); | ||
@@ -27,8 +26,3 @@ export function FocusStackProvider(props) { | ||
function storeFocus(element, prevElement) { | ||
if (prevElement && untrack(activeElement) !== prevElement) { | ||
setFocusStack((stack) => [...stack, prevElement]); | ||
} | ||
else if (element && untrack(activeElement) !== element) { | ||
setFocusStack((stack) => [...stack, element]); | ||
} | ||
setFocusStack((stack) => [...stack, prevElement || element]); | ||
} | ||
@@ -35,0 +29,0 @@ function restoreFocus() { |
{ | ||
"name": "@lightningtv/solid", | ||
"version": "2.7.5-1", | ||
"version": "2.7.5", | ||
"description": "Lightning Renderer for Solid Universal", | ||
@@ -5,0 +5,0 @@ "type": "module", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2
-33.33%256511
-0.29%3648
-0.27%