Fix modal flash
This commit is contained in:
parent
394a1e7d30
commit
a64eaba45c
1 changed files with 1 additions and 7 deletions
|
|
@ -10,15 +10,9 @@
|
|||
}
|
||||
}
|
||||
|
||||
let modal: any = $state.raw()
|
||||
const hash = $derived($page.url.hash.slice(1))
|
||||
const hashIsValid = $derived(Boolean($modals[hash]))
|
||||
|
||||
$effect(() => {
|
||||
if ($modals[hash]) {
|
||||
modal = $modals[hash]
|
||||
}
|
||||
})
|
||||
const modal = $derived($modals[hash])
|
||||
</script>
|
||||
|
||||
<svelte:window onkeydown={onKeyDown} />
|
||||
|
|
|
|||
Loading…
Reference in a new issue