Focus input on submission and fix scroll (#441)

This commit is contained in:
Jeremy 2024-10-14 23:01:46 +05:30 committed by GitHub
parent 23660c5ad1
commit 2705d83d6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 61 additions and 8 deletions

View file

@ -19,6 +19,8 @@ export function useScrollToBottom<T extends HTMLElement>(): [
observer.observe(container, {
childList: true,
subtree: true,
attributes: true,
characterData: true,
});
return () => observer.disconnect();