kripke: fix form enter behavior
This commit is contained in:
@@ -42,7 +42,7 @@ $effect(() => {
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#snippet mathKey(latexCommand: string, actualText?: string)}
|
{#snippet mathKey(latexCommand: string, actualText?: string)}
|
||||||
<button onclick={(e) => {
|
<button type="button" onclick={(e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
input += actualText ?? latexCommand;
|
input += actualText ?? latexCommand;
|
||||||
inputElement.focus();
|
inputElement.focus();
|
||||||
|
|||||||
Reference in New Issue
Block a user