fix(webui): fix cursor position on empty note
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
parent
3344e69544
commit
c5c157a856
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue