added autofocus for user chat input

This commit is contained in:
hariraghav10 2023-10-10 17:22:10 +05:30
parent e48df87e06
commit f835b14902

View File

@ -33,9 +33,6 @@ export default function Conversation() {
const element = document.getElementById('inputbox') as HTMLInputElement; const element = document.getElementById('inputbox') as HTMLInputElement;
if (element) { if (element) {
element.focus(); element.focus();
console.log("Element with ID 'inputbox' found");
} else {
console.log("Element with ID 'inputbox' not found");
} }
}, []); }, []);