Skip to content

Commit

Permalink
refactor: port DocumentTitle to runes mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreminger committed Dec 15, 2024
1 parent e8fd621 commit 13fa674
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/DocumentTitle.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script>
import { activeCell, nonMathCellChanged } from "./stores.ts";
export let title = "New Sheet";
let {title = "New Sheet"} = $props();
let spellcheck = false;
let spellcheck = $state(false);
</script>

<style>
Expand All @@ -27,11 +27,11 @@
</style>

<h1
on:focus={() => {$activeCell = -1; spellcheck = true}}
on:blur={() => spellcheck = false}
onfocus={() => {$activeCell = -1; spellcheck = true}}
onblur={() => spellcheck = false}
contenteditable="true"
bind:textContent={title}
on:input={() => $nonMathCellChanged=true}
oninput={() => $nonMathCellChanged=true}
{spellcheck}
>
</h1>

0 comments on commit 13fa674

Please sign in to comment.