fix(webui): fix cursor position on empty note
ci/woodpecker/push/woodpecker Pipeline was successful Details

feat/tables
Tomáš Mládek 2024-02-06 22:50:33 +01:00
parent 3344e69544
commit c5c157a856
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
<LabelBorder hide={!notes?.length}>
<span slot="header">Notes</span>
<div class="notes" contenteditable on:input={onInput} bind:this={contentEl}>
{#each (notes || '').split('\n') as line, idx}
{#each (notes || '\n').split('\n') as line, idx}
{#if idx > 0}<br />{/if}
{line}
{/each}