mirror of
https://github.com/coracle-social/flotilla.git
synced 2025-12-10 19:07:06 +00:00
Fix modal flash
This commit is contained in:
@@ -10,15 +10,9 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let modal: any = $state.raw()
|
|
||||||
const hash = $derived($page.url.hash.slice(1))
|
const hash = $derived($page.url.hash.slice(1))
|
||||||
const hashIsValid = $derived(Boolean($modals[hash]))
|
const hashIsValid = $derived(Boolean($modals[hash]))
|
||||||
|
const modal = $derived($modals[hash])
|
||||||
$effect(() => {
|
|
||||||
if ($modals[hash]) {
|
|
||||||
modal = $modals[hash]
|
|
||||||
}
|
|
||||||
})
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:window onkeydown={onKeyDown} />
|
<svelte:window onkeydown={onKeyDown} />
|
||||||
|
|||||||
Reference in New Issue
Block a user