your personal website on atproto - mirror blento.app

Merge pull request #222 from flo-bit/fix-204

fix #204

authored by

Florian and committed by
GitHub
ae294471 fc5345b6

+11 -1
+11 -1
src/lib/website/EditableProfile.svelte
··· 43 43 } 44 44 45 45 let profilePosition = $derived(getProfilePosition(data)); 46 + 47 + function onTextUpdate() { 48 + data = { ...data }; 49 + } 46 50 </script> 47 51 48 52 <div ··· 121 125 <!-- Editable Name --> 122 126 {#if data.publication} 123 127 <div class="text-4xl font-bold wrap-anywhere"> 124 - <PlainTextEditor bind:contentDict={data.publication} key="name" placeholder="Your name" /> 128 + <PlainTextEditor 129 + bind:contentDict={data.publication} 130 + key="name" 131 + placeholder="Your name" 132 + onupdate={onTextUpdate} 133 + /> 125 134 </div> 126 135 {/if} 127 136 ··· 133 142 key="description" 134 143 placeholder="Something about me..." 135 144 class="text-base-600 dark:text-base-400 prose dark:prose-invert prose-a:text-accent-500 prose-a:no-underline" 145 + onupdate={onTextUpdate} 136 146 /> 137 147 {/if} 138 148 </div>