Skip to content

Commit 162b31e

Browse files
committed
Fix editor flash on new line
1 parent e41c984 commit 162b31e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/views/livewire/editor.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
<div x-show="mode === 'write'">
3434
<div class="flex flex-col relative">
35-
<div x-text="body" class="invisible whitespace-pre-line p-5 min-h-[5rem]"></div>
35+
<div x-text="body + '\n'" class="invisible whitespace-pre-line border-none p-5 min-h-[5rem]"></div>
3636
<textarea
3737
class="w-full h-full absolute left-0 top-0 right-0 bottom-0 overflow-y-hidden resize-none border-none p-5 focus:border focus:border-lio-300 focus:ring focus:ring-lio-200 focus:ring-opacity-50"
3838
id="body"

0 commit comments

Comments
 (0)