Fix more stuff, particularly event handlers
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
import Button from "@lib/components/Button.svelte"
|
||||
import {clip} from "@app/toast"
|
||||
|
||||
let {code} = $props()
|
||||
const {code} = $props()
|
||||
|
||||
let canvas: Element | undefined = $state()
|
||||
let wrapper: Element | undefined = $state()
|
||||
@@ -26,7 +26,7 @@
|
||||
})
|
||||
</script>
|
||||
|
||||
<Button class="max-w-full" on:click={copy}>
|
||||
<Button class="max-w-full" onclick={copy}>
|
||||
<div bind:this={wrapper} style={`height: ${height}px`}>
|
||||
<canvas
|
||||
class="rounded-box"
|
||||
|
||||
Reference in New Issue
Block a user