Merge branch 'main' into release

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-21 19:02:26 +00:00 committed by GitHub
commit 19a5eb0467
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,15 @@ export default function ChatInput({
setChatValue,
inputRef,
}) {
useEffect(() => {
if (!lockChat && inputRef.current) {
inputRef.current.focus();
}
},[
lockChat,inputRef
])
useEffect(() => {
if (inputRef.current) {
inputRef.current.style.height = "inherit"; // Reset the height