fix: commentform ctrl + enter doesnt work

This commit is contained in:
James Xylight committed 2025-06-25 14:43:44 -07:00
1 parent 2a985eccf6
commit 58d5be7027
2 files changed
+13 -4

No files matched your search

+4 -1
View File
@@ -11,4 +11,7 @@ vite.config.ts.timestamp-*
stats.html stats.html
dev-dist dev-dist
yarn-error.log yarn-error.log
yarn.lock yarn.lock
playwright-report
test-results
@@ -75,7 +75,13 @@
} }
</script> </script>
<div class="flex flex-col gap-2 relative"> <form
onsubmit={e => {
e.preventDefault()
submit()
}}
class="flex flex-col gap-2 relative"
>
{#if preview} {#if preview}
<div <div
class="bg-slate-100 dark:bg-zinc-900 px-3 py-2.5 h-64 border class="bg-slate-100 dark:bg-zinc-900 px-3 py-2.5 h-64 border
@@ -147,7 +153,7 @@
/> />
</Button> </Button>
<Button <Button
onclick={submit} submit
color="primary" color="primary"
rounding="pill" rounding="pill"
size="custom" size="custom"
@@ -163,4 +169,4 @@
{/if} {/if}
</MarkdownEditor> </MarkdownEditor>
{/if} {/if}
</div> </form>