UBERF-5626: set autofocus end on message edit (#4784)

Signed-off-by: Kristina Fefelova <kristin.fefelova@gmail.com>
This commit is contained in:
Kristina
2024-02-27 15:31:16 +07:00
committed by GitHub
parent d8ab1316c8
commit a0ceaecbbd
5 changed files with 14 additions and 9 deletions
@@ -29,6 +29,7 @@
export let boundary: HTMLElement | undefined = undefined
export let loading = false
export let collection: string = 'comments'
export let autofocus = false
type MessageDraft = Pick<ChatMessage, '_id' | 'message' | 'attachments'>
@@ -186,6 +187,7 @@
bind:objectId={_id}
{shouldSaveDraft}
{boundary}
{autofocus}
on:message={onMessage}
on:update={onUpdate}
on:focus