strong type for selected
in nav items
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
export let destination: Pane;
|
export let destination: Pane;
|
||||||
|
|
||||||
|
let selected: boolean;
|
||||||
$: selected = destination === $pane;
|
$: selected = destination === $pane;
|
||||||
|
|
||||||
function handleKey({ key }: KeyboardEvent) {
|
function handleKey({ key }: KeyboardEvent) {
|
||||||
|
Reference in New Issue
Block a user